Skip to content

Commit 56f6556

Browse files
Deflake coverage lifecycle test
1 parent c14588d commit 56f6556

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/src/test_api_lifecycle.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,21 +235,19 @@ static uint16_t crc16_add(uint16_t crc, const void* data, const size_t size)
235235
// Node-ID Lifecycle Tests
236236
// =====================================================================================================================
237237

238-
// 1. canard_new assigns a random node_id in [1,127]; different seeds yield different IDs.
238+
// 1. canard_new assigns a random node_id in [1,127].
239239
static void test_canard_new_assigns_random_node_id()
240240
{
241241
canard_t self1 = {};
242242
TEST_ASSERT_TRUE(canard_new(&self1, &test_vtable, make_std_memory(), 16U, 12345U, 0U));
243243
TEST_ASSERT_TRUE(self1.node_id >= 1U);
244244
TEST_ASSERT_TRUE(self1.node_id <= 127U);
245-
const uint_least8_t id1 = self1.node_id;
246245
canard_destroy(&self1);
247246

248247
canard_t self2 = {};
249248
TEST_ASSERT_TRUE(canard_new(&self2, &test_vtable, make_std_memory(), 16U, 99999U, 0U));
250249
TEST_ASSERT_TRUE(self2.node_id >= 1U);
251250
TEST_ASSERT_TRUE(self2.node_id <= 127U);
252-
TEST_ASSERT_NOT_EQUAL(id1, self2.node_id);
253251
canard_destroy(&self2);
254252
}
255253

0 commit comments

Comments
 (0)