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,52 +45,12 @@ class KeyAddrEventQueueLeak : public VirtualDeviceTest {
};
TEST_F(KeyAddrEventQueueLeak, TimeIsConsistent) {
// Basic test every cycle
for (int i = 0; i < 10; ++i)
assertTimeElapses(1);
assertTimeElapses(1);
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);
assertTimeElapses(10);
assertTimeElapses(10);
// Guarantee underflow in case of signed integer length
for (int i = 0; i < 50; ++i)
assertTimeElapses(10);
}

Loading…
Cancel
Save