Refresh matching active path RTT through probes and isolate integration event counters
This commit is contained in:
1 parent
7db3008e5c
commit
2d9616eca5
2 files changed
+14
No files matched your search
@@ -223,6 +223,8 @@ static void put_member(unsigned destination, unsigned member, uint64_t group) {
|
||||
static void run_until(unsigned *value, unsigned expected_value) {
|
||||
uint64_t deadline = get_time_tb() + 100000;
|
||||
while (*value < expected_value && get_time_tb() < deadline) test_clock_poll(ua, 100);
|
||||
if (*value != expected_value) DEBUG_ERROR(DEBUG_CATEGORY_STREAM, "stream test wait expected=%u actual=%u data=%u/%u end=%u/%u closed=%u/%u",
|
||||
expected_value, *value, data_events[1], data_events[2], end_events[1], end_events[2], closed_events[1], closed_events[2]);
|
||||
CHECK(*value == expected_value);
|
||||
}
|
||||
|
||||
@@ -611,6 +613,7 @@ static void test_automatic(void) {
|
||||
CHECK(stream_publish_open(nodes[3], GROUP2, ¶meters, &publisher) == STREAM_OK);
|
||||
struct stream_info origin; CHECK(stream_get_info(publisher, &origin) == STREAM_OK);
|
||||
for (unsigned i = 1; i < 3; i++) wait_state(i, 3, GROUP2, origin.descriptor.source_epoch, 0);
|
||||
stream_set_event_callback(nodes[1], on_automatic, NULL); stream_set_event_callback(nodes[2], on_automatic, NULL);
|
||||
for (unsigned i = 1; i < 4; i++) {
|
||||
automatic_handlers[i] = nodes[i]->api_bindings.callbacks[ETCP_ID_STREAM];
|
||||
CHECK(etcp_bind(nodes[i], ETCP_ID_STREAM, automatic_raw) == 0);
|
||||
|
||||
Reference in new issue
Block a user