Reduce code repetition in testcase for #1107

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1108/head
Michael Richters 3 years ago
parent ca1e23093e
commit b68ea18212
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -45,53 +45,13 @@ class KeyAddrEventQueueLeak : public VirtualDeviceTest {
}; };
TEST_F(KeyAddrEventQueueLeak, TimeIsConsistent) { TEST_F(KeyAddrEventQueueLeak, TimeIsConsistent) {
assertTimeElapses(1); // Basic test every cycle
assertTimeElapses(1); for (int i = 0; i < 10; ++i)
assertTimeElapses(10); assertTimeElapses(1);
assertTimeElapses(10);
assertTimeElapses(10); // Guarantee underflow in case of signed integer length
assertTimeElapses(10); for (int i = 0; i < 50; ++i)
assertTimeElapses(10); assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
assertTimeElapses(10);
} }
} // namespace } // namespace

Loading…
Cancel
Save