kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 52c6910bffedd060ea3d918302a8fda0ee843ea1e303df3611b3ccb782520751 |
|---|---|
| Author | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-15 11:41 -05:00 |
| Committer | Andrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-19 13:23 -05:00 |
| Parents | 87dc28d80ecc |
1 file changed
modified driver-core/src/test/java/com/datastax/driver/core/ThreadLocalMonotonicTimestampGeneratorTest.java +3 −2
| @@ -100,8 +100,9 @@ | ||
| 100 | 100 | .containsOnlyOnce("Clock skew detected:") |
| 101 | 101 | .containsOnlyOnce(String.format(logFormat, start - 1, 1, start)); |
| 102 | 102 | |
| 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); | |
| 105 | 106 | |
| 106 | 107 | next = generator.next(); |
| 107 | 108 | assertThat(next).isEqualTo(previous + 1); |