Elffuss BraidHub

kikocis/java-driver public

Wait 1.1s in timestamp log test.

Wait for 1.1 seconds instead of 1s.  We wait slightly longer
than 1 second to deal with system clock precision on platforms
like windows.
Changeset52c6910bffedd060ea3d918302a8fda0ee843ea1e303df3611b3ccb782520751
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-15 11:41 -05:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-19 13:23 -05:00
Parents87dc28d80ecc

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/ThreadLocalMonotonicTimestampGeneratorTest.java +3 −2
@@ -100,8 +100,9 @@
100100 .containsOnlyOnce("Clock skew detected:")
101101 .containsOnlyOnce(String.format(logFormat, start - 1, 1, start));
102102
103- // Wait for a second to see if we get an additional clock skew message.
104- Uninterruptibles.sleepUninterruptibly(1, TimeUnit.SECONDS);
103+ // Wait for 1.1 seconds to see if we get an additional clock skew message. We wait slightly longer
104+ // than 1 second to deal with system clock precision on platforms like windows.
105+ Uninterruptibles.sleepUninterruptibly(1100, TimeUnit.MILLISECONDS);
105106
106107 next = generator.next();
107108 assertThat(next).isEqualTo(previous + 1);