Skip to content

Commit

Permalink
adds time expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Nov 14, 2020
1 parent 6f36b83 commit 06841e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openlcb/AliasAllocator.cxxtest
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ TEST_F(AsyncAliasAllocatorTest, BulkFew)
}
LOG(INFO, "invoke");
set_seed(0x555, ifCan_->alias_allocator());
auto start_time = os_get_time_monotonic();
auto invocation = invoke_flow_nowait(bulkAllocator_.get(), 5);
wait();
LOG(INFO, "expect RIDs");
Expand All @@ -254,6 +255,8 @@ TEST_F(AsyncAliasAllocatorTest, BulkFew)
LOG(INFO, "wait for complete");
invocation->wait();
clear_expect(true);
auto end_time = os_get_time_monotonic();
EXPECT_LT(MSEC_TO_NSEC(200), end_time - start_time);
}

} // namespace openlcb

0 comments on commit 06841e8

Please sign in to comment.