Skip to content

Commit 9a731cc

Browse files
committed
Increase test timeouts due to slow github action runners
1 parent 2ee3494 commit 9a731cc

File tree

15 files changed

+47
-47
lines changed

15 files changed

+47
-47
lines changed

grails-async/core/src/test/groovy/grails/async/FutureTaskPromiseFactorySpec.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class FutureTaskPromiseFactorySpec extends Specification {
5252
list.onComplete { List l -> result = l }
5353

5454
then: 'the result is correct'
55-
new PollingConditions().eventually {
55+
new PollingConditions(timeout: 5).eventually {
5656
result
5757
result == [2, 4]
5858
}
@@ -62,7 +62,7 @@ class FutureTaskPromiseFactorySpec extends Specification {
6262
list.onComplete { result = it }
6363

6464
then: 'the result is correct'
65-
new PollingConditions().eventually {
65+
new PollingConditions(timeout: 5).eventually {
6666
result == [4, 8]
6767
}
6868
}
@@ -92,7 +92,7 @@ class FutureTaskPromiseFactorySpec extends Specification {
9292

9393
then: 'the onComplete handler is invoked and the onError handler is ignored'
9494
thrown(ExecutionException)
95-
new PollingConditions().eventually {
95+
new PollingConditions(timeout: 5).eventually {
9696
!result
9797
error
9898
}

grails-async/core/src/test/groovy/grails/async/PromiseListSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class PromiseListSpec extends Specification {
3737
list.onComplete { result = it }
3838

3939
then: 'then the result from onComplete is correct'
40-
new PollingConditions().eventually {
40+
new PollingConditions(timeout: 5).eventually {
4141
result == [1, 2, 3]
4242
}
4343
}
@@ -53,7 +53,7 @@ class PromiseListSpec extends Specification {
5353
list.onComplete { result = it }
5454

5555
then: 'then the result from onComplete is correct'
56-
new PollingConditions().eventually {
56+
new PollingConditions(timeout: 5).eventually {
5757
result == [1, 2, 3]
5858
}
5959
}

grails-async/core/src/test/groovy/grails/async/PromiseMapSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class PromiseMapSpec extends Specification {
3333
map.onComplete { result = it }
3434

3535
then: 'an appropriately populated map is returned to the onComplete event'
36-
new PollingConditions().eventually {
36+
new PollingConditions(timeout: 5).eventually {
3737
result
3838
result['one'] == 1
3939
result['four'] == 4
@@ -52,7 +52,7 @@ class PromiseMapSpec extends Specification {
5252
map.onComplete { result = it }
5353

5454
then: 'an appropriately populated map is returned to the onComplete event'
55-
new PollingConditions().eventually {
55+
new PollingConditions(timeout: 5).eventually {
5656
result
5757
result['one'] == 1
5858
result['four'] == 4

grails-async/core/src/test/groovy/grails/async/PromiseSpec.groovy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class PromiseSpec extends Specification {
8080
list.onComplete { result = it }
8181

8282
then: 'the result is correct'
83-
new PollingConditions().eventually {
83+
new PollingConditions(timeout: 5).eventually {
8484
result == [2, 4]
8585
}
8686
}
@@ -95,7 +95,7 @@ class PromiseSpec extends Specification {
9595
list.onComplete { result = it }
9696

9797
then: 'the result is correct'
98-
new PollingConditions().eventually {
98+
new PollingConditions(timeout: 5).eventually {
9999
result == [2, 4]
100100
}
101101

@@ -104,7 +104,7 @@ class PromiseSpec extends Specification {
104104
list.onComplete { result = it }
105105

106106
then: 'the result is correct'
107-
new PollingConditions().eventually {
107+
new PollingConditions(timeout: 5).eventually {
108108
result == [6, 8]
109109
}
110110
}
@@ -119,7 +119,7 @@ class PromiseSpec extends Specification {
119119
promise.onError { hasError = true }
120120

121121
then: 'the onComplete handler is invoked and the onError handler is ignored'
122-
new PollingConditions().eventually {
122+
new PollingConditions(timeout: 5).eventually {
123123
result == 2
124124
hasError == false
125125
}
@@ -135,7 +135,7 @@ class PromiseSpec extends Specification {
135135
promise.onError { error = it }
136136

137137
then: 'the onComplete handler is invoked and the onError handler is ignored'
138-
new PollingConditions().eventually {
138+
new PollingConditions(timeout: 5).eventually {
139139
!result
140140
error
141141
error.message.contains('bad')

grails-async/core/src/test/groovy/grails/async/SynchronousPromiseFactorySpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class SynchronousPromiseFactorySpec extends Specification {
6666
list.onComplete { result = it }
6767

6868
then: 'the result is correct'
69-
new PollingConditions().eventually {
69+
new PollingConditions(timeout: 5).eventually {
7070
result == [2, 4]
7171
}
7272

@@ -75,7 +75,7 @@ class SynchronousPromiseFactorySpec extends Specification {
7575
list.onComplete { result = it }
7676

7777
then: 'the result is correct'
78-
new PollingConditions().eventually {
78+
new PollingConditions(timeout: 5).eventually {
7979
result == [6, 8]
8080
}
8181
}
@@ -90,7 +90,7 @@ class SynchronousPromiseFactorySpec extends Specification {
9090
promise.onError { hasError = true }
9191

9292
then: 'The onComplete handler is invoked and the onError handler is ignored'
93-
new PollingConditions().eventually {
93+
new PollingConditions(timeout: 5).eventually {
9494
result == 2
9595
hasError == false
9696
}
@@ -106,7 +106,7 @@ class SynchronousPromiseFactorySpec extends Specification {
106106
promise.onError { error = it }
107107

108108
then: 'the onComplete handler is invoked and the onError handler is ignored'
109-
new PollingConditions().eventually {
109+
new PollingConditions(timeout: 5).eventually {
110110
!result
111111
error
112112
error.message == 'bad'

grails-async/gpars/src/test/groovy/grails/async/GparsPromiseSpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class GparsPromiseSpec extends Specification {
8080
promiseList.onComplete { List v -> result = v }
8181

8282
then: 'the result is correct'
83-
new PollingConditions().eventually {
83+
new PollingConditions(timeout: 5).eventually {
8484
result == [2, 4]
8585
}
8686

@@ -90,7 +90,7 @@ class GparsPromiseSpec extends Specification {
9090
promiseList.onComplete { List v -> result = v }
9191

9292
then: 'The result is correct'
93-
new PollingConditions() {
93+
new PollingConditions(timeout: 5) {
9494
result == [2,4]
9595
}
9696
}
@@ -105,7 +105,7 @@ class GparsPromiseSpec extends Specification {
105105
promise.onError { hasError = true }
106106

107107
then: 'the onComplete handler is invoked and the onError handler is ignored'
108-
new PollingConditions().eventually {
108+
new PollingConditions(timeout: 5).eventually {
109109
result == 2
110110
hasError == false
111111
}
@@ -121,7 +121,7 @@ class GparsPromiseSpec extends Specification {
121121
promise.onError { error = it }
122122

123123
then: 'the onError handler is invoked and the onComplete handler is ignored'
124-
new PollingConditions().eventually {
124+
new PollingConditions(timeout: 5).eventually {
125125
!result
126126
error
127127
error.message == 'bad'

grails-async/rxjava/src/test/groovy/org/grails/async/factory/rxjava/RxJavaPromiseListSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RxJavaPromiseListSpec extends Specification{
2121
list.onComplete { result = it }
2222

2323
then: 'then the result from onComplete is correct'
24-
new PollingConditions().eventually {
24+
new PollingConditions(timeout: 5).eventually {
2525
result == [1,2,3]
2626
}
2727
}
@@ -37,7 +37,7 @@ class RxJavaPromiseListSpec extends Specification{
3737
list.onComplete { result = it }
3838

3939
then: 'then the result from onComplete is correct'
40-
new PollingConditions().eventually {
40+
new PollingConditions(timeout: 5).eventually {
4141
result == [1,2,3]
4242
}
4343
}

grails-async/rxjava/src/test/groovy/org/grails/async/factory/rxjava/RxJavaPromiseMapSpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RxJavaPromiseMapSpec extends Specification{
1818
map.onComplete { result = it }
1919

2020
then: 'an appropriately populated map is returned to the onComplete event'
21-
new PollingConditions().eventually {
21+
new PollingConditions(timeout: 5).eventually {
2222
result
2323
result['one'] == 1
2424
result['four'] == 4
@@ -37,7 +37,7 @@ class RxJavaPromiseMapSpec extends Specification{
3737
map.onComplete { result = it }
3838

3939
then: 'an appropriately populated map is returned to the onComplete event'
40-
new PollingConditions().eventually {
40+
new PollingConditions(timeout: 5).eventually {
4141
result
4242
result['one'] == 1
4343
result['four'] == 4
@@ -56,7 +56,7 @@ class RxJavaPromiseMapSpec extends Specification{
5656
map.onComplete { result = it }
5757

5858
then: 'an appropriately populated map is returned to the onComplete event'
59-
new PollingConditions().eventually {
59+
new PollingConditions(timeout: 5).eventually {
6060
result
6161
result['one'] == 1
6262
result['four'] == 4
@@ -79,7 +79,7 @@ class RxJavaPromiseMapSpec extends Specification{
7979
map.onError { error = it }
8080

8181
then: 'an appropriately populated map is returned to the onComplete event'
82-
new PollingConditions().eventually {
82+
new PollingConditions(timeout: 5).eventually {
8383
!result
8484
error
8585
error.message == 'bad'

grails-async/rxjava/src/test/groovy/org/grails/async/factory/rxjava/RxJavaPromiseSpec.groovy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class RxJavaPromiseSpec extends Specification {
6262
list.onComplete { result = it }
6363

6464
then: 'The result is correct'
65-
new PollingConditions().eventually {
65+
new PollingConditions(timeout: 5).eventually {
6666
result == [2,4]
6767
}
6868

@@ -71,7 +71,7 @@ class RxJavaPromiseSpec extends Specification {
7171
list.onComplete { result = it }
7272

7373
then: 'the result is correct'
74-
new PollingConditions().eventually {
74+
new PollingConditions(timeout: 5).eventually {
7575
result == [4,8]
7676
}
7777
}
@@ -86,7 +86,7 @@ class RxJavaPromiseSpec extends Specification {
8686
promise.onError { hasError = true }
8787

8888
then: 'the onComplete handler is invoked and the onError handler is ignored'
89-
new PollingConditions().eventually {
89+
new PollingConditions(timeout: 5).eventually {
9090
result == 2
9191
hasError == false
9292
}
@@ -102,7 +102,7 @@ class RxJavaPromiseSpec extends Specification {
102102
promise.onError { error = it }
103103

104104
then: 'the onComplete handler is invoked and the onError handler is ignored'
105-
new PollingConditions().eventually {
105+
new PollingConditions(timeout: 5).eventually {
106106
!result
107107
error
108108
error.message == 'bad'

grails-async/rxjava2/src/test/groovy/org/grails/async/factory/rxjava2/RxPromiseListSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class RxPromiseListSpec extends Specification {
2020
list.onComplete { result = it }
2121

2222
then: 'then the result from onComplete is correct'
23-
new PollingConditions().eventually {
23+
new PollingConditions(timeout: 5).eventually {
2424
result == [1,2,3]
2525
}
2626
}
@@ -36,7 +36,7 @@ class RxPromiseListSpec extends Specification {
3636
list.onComplete { result = it }
3737

3838
then: 'then the result from onComplete is correct'
39-
new PollingConditions().eventually {
39+
new PollingConditions(timeout: 5).eventually {
4040
result == [1,2,3]
4141
}
4242
}

0 commit comments

Comments
 (0)