@@ -14,32 +14,32 @@ internal class FizzBuzzTest {
14
14
Thread {
15
15
try {
16
16
fizzBuzz.fizz { fizz[0 ]++ }
17
- } catch (e : InterruptedException ) {
17
+ } catch (_ : InterruptedException ) {
18
18
}
19
19
}
20
20
.start()
21
21
Thread {
22
22
try {
23
23
fizzBuzz.buzz { fizz[0 ]++ }
24
- } catch (e : InterruptedException ) {
24
+ } catch (_ : InterruptedException ) {
25
25
}
26
26
}
27
27
.start()
28
28
Thread {
29
29
try {
30
30
fizzBuzz.fizzbuzz { fizz[0 ]++ }
31
- } catch (e : InterruptedException ) {
31
+ } catch (_ : InterruptedException ) {
32
32
}
33
33
}
34
34
.start()
35
35
Thread {
36
36
try {
37
37
fizzBuzz.number { _: Int -> fizz[0 ]++ }
38
- } catch (e : InterruptedException ) {
38
+ } catch (_ : InterruptedException ) {
39
39
}
40
40
}
41
41
.start()
42
- TimeUnit .MILLISECONDS .sleep(2000 )
42
+ TimeUnit .MILLISECONDS .sleep(2200 )
43
43
assertThat(fizz[0 ] > 0 , equalTo(true ))
44
44
}
45
45
@@ -51,28 +51,28 @@ internal class FizzBuzzTest {
51
51
Thread {
52
52
try {
53
53
fizzBuzz.fizz { fizz[0 ]++ }
54
- } catch (e : InterruptedException ) {
54
+ } catch (_ : InterruptedException ) {
55
55
}
56
56
}
57
57
.start()
58
58
Thread {
59
59
try {
60
60
fizzBuzz.buzz { fizz[0 ]++ }
61
- } catch (e : InterruptedException ) {
61
+ } catch (_ : InterruptedException ) {
62
62
}
63
63
}
64
64
.start()
65
65
Thread {
66
66
try {
67
67
fizzBuzz.fizzbuzz { fizz[0 ]++ }
68
- } catch (e : InterruptedException ) {
68
+ } catch (_ : InterruptedException ) {
69
69
}
70
70
}
71
71
.start()
72
72
Thread {
73
73
try {
74
74
fizzBuzz.number { _: Int -> fizz[0 ]++ }
75
- } catch (e : InterruptedException ) {
75
+ } catch (_ : InterruptedException ) {
76
76
}
77
77
}
78
78
.start()
0 commit comments