We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db5f33d commit 98d8bd8Copy full SHA for 98d8bd8
src/test/java/com/github/underscore/FunctionsTest.java
@@ -27,6 +27,7 @@
27
import org.junit.Test;
28
import static java.util.Arrays.asList;
29
import static org.junit.Assert.assertEquals;
30
+import static org.junit.Assert.assertTrue;
31
32
/**
33
* Underscore library unit test.
@@ -317,7 +318,7 @@ public void setInterval() throws Exception {
317
318
counter[0]++; return null; } };
319
$.setInterval(incr, 10);
320
Thread.sleep(45);
- assertEquals(4, counter[0].intValue());
321
+ assertTrue(counter[0].intValue() == 4 || counter[0].intValue() == 5);
322
}
323
324
@Test
0 commit comments