Skip to content

Commit

Permalink
firmware: tests: devices: Updating the payload device test #273
Browse files Browse the repository at this point in the history
  • Loading branch information
mgm8 committed Feb 25, 2024
1 parent 825aa64 commit 29499af
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions firmware/tests/devices/payload_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* \author Gabriel Mariano Marcelino <[email protected]>
* \author Bruno Benedetti <[email protected]>
*
* \version 0.10.10
* \version 0.10.11
*
* \date 2021/08/16
*
Expand Down Expand Up @@ -153,19 +153,6 @@ static void payload_init_test(void **state)
will_return(__wrap_px_init, 0);

assert_return_code(payload_init(PAYLOAD_X), 0);

/* Payload Joinville */
expect_value(__wrap_phj_init_i2c, config.port, I2C_PORT_0);
expect_value(__wrap_phj_init_i2c, config.bitrate, 400000);

will_return(__wrap_phj_init_i2c, 0);

expect_value(__wrap_phj_init_gpio, config.pin, GPIO_PIN_0);
expect_value(__wrap_phj_init_gpio, config.mode, GPIO_MODE_INPUT);

will_return(__wrap_phj_init_gpio, 0);

assert_return_code(payload_init(PAYLOAD_PHJ), 0);
}

static void payload_enable_test(void **state)
Expand Down

0 comments on commit 29499af

Please sign in to comment.