File tree 2 files changed +5
-5
lines changed
g1101_1200/s1195_fizz_buzz_multithreaded
g1201_1300/s1226_the_dining_philosophers
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ void fizzBuzz() throws InterruptedException {
46
46
}
47
47
})
48
48
.start ();
49
- TimeUnit .MILLISECONDS .sleep (400 );
50
- assertThat (fizz [0 ] > 5 , equalTo (true ));
49
+ TimeUnit .MILLISECONDS .sleep (500 );
50
+ assertThat (fizz [0 ] > 0 , equalTo (true ));
51
51
}
52
52
53
53
@ Test
@@ -89,7 +89,7 @@ void fizzBuzz2() throws InterruptedException {
89
89
}
90
90
})
91
91
.start ();
92
- TimeUnit .MILLISECONDS .sleep (400 );
93
- assertThat (fizz [0 ] > 1 , equalTo (true ));
92
+ TimeUnit .MILLISECONDS .sleep (500 );
93
+ assertThat (fizz [0 ] > 0 , equalTo (true ));
94
94
}
95
95
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ void diningPhilosophers() throws InterruptedException {
97
97
}
98
98
})
99
99
.start ();
100
- TimeUnit .MILLISECONDS .sleep (350 );
100
+ TimeUnit .MILLISECONDS .sleep (500 );
101
101
assertThat (calls [0 ], equalTo (25 ));
102
102
}
103
103
}
You can’t perform that action at this time.
0 commit comments