GeezerVison is showing github.com — Stabilize test on Windows · junit-team/junit-framework@dafaabf
File tree
Expand file treeCollapse file tree
Open diff view settings
documentation/src/test/java/example
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: documentation/src/test/java/example/TimeoutDemo.java +6-6Lines changed: 6 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,15 +27,15 @@ void setUp() { |
27 | 27 | } |
28 | 28 |
|
29 | 29 | @Test |
30 | | - @Timeout(value = 100, unit = TimeUnit.MILLISECONDS) |
31 | | - void failsIfExecutionTimeExceeds100Milliseconds() { |
32 | | - // fails if execution time exceeds 100 milliseconds |
| 30 | + @Timeout(value = 500, unit = TimeUnit.MILLISECONDS) |
| 31 | + void failsIfExecutionTimeExceeds500Milliseconds() { |
| 32 | + // fails if execution time exceeds 500 milliseconds |
33 | 33 | } |
34 | 34 |
|
35 | 35 | @Test |
36 | | - @Timeout(value = 100, unit = TimeUnit.MILLISECONDS, threadMode = ThreadMode.SEPARATE_THREAD) |
37 | | - void failsIfExecutionTimeExceeds100MillisecondsInSeparateThread() { |
38 | | - // fails if execution time exceeds 100 milliseconds, the test code is executed in a separate thread |
| 36 | + @Timeout(value = 500, unit = TimeUnit.MILLISECONDS, threadMode = ThreadMode.SEPARATE_THREAD) |
| 37 | + void failsIfExecutionTimeExceeds500MillisecondsInSeparateThread() { |
| 38 | + // fails if execution time exceeds 500 milliseconds, the test code is executed in a separate thread |
39 | 39 | } |
40 | 40 |
|
41 | 41 | } |
|