Skip to content

Commit

Permalink
canard/tests: increase buffer size for testing canardStaleTransfers
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator authored and tridge committed Jun 7, 2023
1 parent 5a930fd commit b0ff748
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions canard/tests/test_canard_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ TEST(StaticCanardTest, test_CleanupStaleTransfers)
node_status.sub_mode = 4;
node_status.vendor_specific_status_code = 5;

uint8_t buffer0[2048] {};
uint8_t buffer1[2048] {};
uint8_t buffer0[4096] {};
uint8_t buffer1[4096] {};
CANARD_TEST_INTERFACE(0).init(buffer0, sizeof(buffer0));
CANARD_TEST_INTERFACE(1).init(buffer1, sizeof(buffer1));

Expand All @@ -298,7 +298,7 @@ TEST(StaticCanardTest, test_CleanupStaleTransfers)
} else {
node_status_pub_0.set_timeout_ms(1);
}
node_status_pub_0.broadcast(node_status);
ASSERT_TRUE(node_status_pub_0.broadcast(node_status));
}
// sleep for 2ms
usleep(2000);
Expand Down

0 comments on commit b0ff748

Please sign in to comment.