Skip to content

Commit 329f31e

Browse files
committed
test: remove @PendingFeature for passing tests
1 parent 30b1611 commit 329f31e

File tree

44 files changed

+1
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1
-362
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package grails.async
2121
import grails.async.decorator.PromiseDecorator
2222
import org.grails.async.factory.future.CachedThreadPoolPromiseFactory
2323
import spock.lang.Issue
24-
import spock.lang.PendingFeatureIf
2524
import spock.lang.Specification
2625
import spock.util.concurrent.PollingConditions
2726

@@ -100,10 +99,6 @@ class FutureTaskPromiseFactorySpec extends Specification {
10099
hasError == false
101100
}
102101

103-
@PendingFeatureIf({
104-
// thrown() does currently not work with Groovy 5
105-
GroovySystem.version.startsWith('5')
106-
})
107102
void 'Test promise onError handling'() {
108103

109104
when: 'a promise is executed with an onComplete handler'
@@ -138,10 +133,6 @@ class FutureTaskPromiseFactorySpec extends Specification {
138133
val == 10
139134
}
140135

141-
@PendingFeatureIf({
142-
// thrown() does currently not work with Groovy 5
143-
GroovySystem.version.startsWith('5')
144-
})
145136
void 'Test promise chaining with exception'() {
146137

147138
when: 'a promise is chained'
@@ -155,10 +146,6 @@ class FutureTaskPromiseFactorySpec extends Specification {
155146
}
156147

157148
@Issue('GRAILS-10152')
158-
@PendingFeatureIf({
159-
// Mock() does currently not work with Groovy 5
160-
GroovySystem.version.startsWith('5')
161-
})
162149
void 'Test promise closure is not executed multiple times if it returns null'() {
163150

164151
given: 'a closure that returns null'

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*/
1919
package grails.async
2020

21-
import spock.lang.PendingFeatureIf
2221
import spock.lang.Specification
2322
import spock.util.concurrent.PollingConditions
2423

@@ -74,10 +73,6 @@ class PromiseListSpec extends Specification {
7473

7574
}
7675

77-
@PendingFeatureIf({
78-
// thrown() does currently not work with Groovy 5
79-
GroovySystem.version.startsWith('5')
80-
})
8176
void 'Test promise list with an exception'() {
8277

8378
when: 'a promise list with a promise that throws an exception is used'

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ class PromiseSpec extends Specification {
4444

4545
}
4646

47-
@PendingFeatureIf({
48-
// thrown() does currently not work with Groovy 5
49-
GroovySystem.version.startsWith('5')
50-
})
5147
void 'Test promise timeout handling'() {
5248

5349
when: 'a promise that takes a while is created'
@@ -165,10 +161,6 @@ class PromiseSpec extends Specification {
165161
result == 10
166162
}
167163

168-
@PendingFeatureIf({
169-
// thrown() does currently not work with Groovy 5
170-
GroovySystem.version.startsWith('5')
171-
})
172164
void 'Test promise chaining with exception'() {
173165

174166
when: 'a promise is chained'

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ package grails.async
2121
import grails.async.decorator.PromiseDecorator
2222
import org.grails.async.factory.SynchronousPromiseFactory
2323
import spock.lang.Issue
24-
import spock.lang.PendingFeatureIf
2524
import spock.lang.Specification
2625
import spock.util.concurrent.PollingConditions
2726

@@ -128,10 +127,6 @@ class SynchronousPromiseFactorySpec extends Specification {
128127
result == 10
129128
}
130129

131-
@PendingFeatureIf({
132-
// thrown() does currently not work with Groovy 5
133-
GroovySystem.version.startsWith('5')
134-
})
135130
void 'Test promise chaining with exception'() {
136131

137132
when: 'a promise is chained'
@@ -145,10 +140,6 @@ class SynchronousPromiseFactorySpec extends Specification {
145140
}
146141

147142
@Issue('GRAILS-9229')
148-
@PendingFeatureIf({
149-
// Mock() does currently not work with Groovy 5
150-
GroovySystem.version.startsWith('5')
151-
})
152143
void 'Test promise is executed without calling get'() {
153144

154145
given: 'a closure'
@@ -162,10 +153,6 @@ class SynchronousPromiseFactorySpec extends Specification {
162153
}
163154

164155
@Issue('GRAILS-10152')
165-
@PendingFeatureIf({
166-
// Mock() does currently not work with Groovy 5
167-
GroovySystem.version.startsWith('5')
168-
})
169156
void 'Test promise closure is not executed multiple times if it returns null'() {
170157

171158
given: 'a closure that returns null'

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package grails.async
2020

2121
import grails.async.decorator.PromiseDecorator
2222
import org.grails.async.factory.gpars.GparsPromiseFactory
23-
import spock.lang.PendingFeatureIf
2423
import spock.lang.Specification
2524
import spock.util.concurrent.PollingConditions
2625

@@ -49,10 +48,6 @@ class GparsPromiseSpec extends Specification {
4948
result == '*10*'
5049
}
5150

52-
@PendingFeatureIf({
53-
// thrown() does currently not work with Groovy 5
54-
GroovySystem.version.startsWith('5')
55-
})
5651
void 'Test promise timeout handling'() {
5752

5853
when: 'a promise that takes longer than the timeout'
@@ -147,10 +142,6 @@ class GparsPromiseSpec extends Specification {
147142
value == 10
148143
}
149144

150-
@PendingFeatureIf({
151-
// thrown() does currently not work with Groovy 5
152-
GroovySystem.version.startsWith('5')
153-
})
154145
void 'Test promise chaining with exception'() {
155146

156147
when: 'a promise with an exception is chained'

grails-async/plugin/src/test/groovy/grails/async/services/WebPromisesSpec.groovy

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,13 @@ import grails.async.Promises
2222
import grails.async.web.WebPromises
2323
import grails.util.GrailsWebMockUtil
2424
import org.springframework.web.context.request.RequestContextHolder
25-
import spock.lang.PendingFeatureIf
2625
import spock.lang.Specification
2726

2827
/**
2928
* Created by graemerocher on 20/02/2017.
3029
*/
3130
class WebPromisesSpec extends Specification {
3231

33-
@PendingFeatureIf({
34-
// thrown() does currently not work with Groovy 5
35-
GroovySystem.version.startsWith('5')
36-
})
3732
void 'Test web promises handling'() {
3833

3934
setup:

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package org.grails.async.factory.rxjava
2020

2121
import grails.async.PromiseList
22-
import spock.lang.PendingFeatureIf
2322
import spock.lang.Specification
2423
import spock.util.concurrent.PollingConditions
2524

@@ -78,10 +77,6 @@ class RxJavaPromiseListSpec extends Specification{
7877
result == [1,2,3]
7978
}
8079

81-
@PendingFeatureIf({
82-
// thrown() does currently not work with Groovy 5
83-
GroovySystem.version.startsWith('5')
84-
})
8580
void 'Test promise list with an exception'() {
8681

8782
given: 'a promise list with a promise that throws an exception'

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package org.grails.async.factory.rxjava
2020

2121
import grails.async.Promises
2222
import grails.async.decorator.PromiseDecorator
23-
import spock.lang.PendingFeatureIf
2423
import spock.lang.Specification
2524
import spock.util.concurrent.PollingConditions
2625

@@ -49,10 +48,6 @@ class RxJavaPromiseSpec extends Specification {
4948

5049
}
5150

52-
@PendingFeatureIf({
53-
// thrown() does currently not work with Groovy 5
54-
GroovySystem.version.startsWith('5')
55-
})
5651
void 'Test promise timeout handling'() {
5752

5853
when: 'a promise that takes a while is created'
@@ -146,10 +141,6 @@ class RxJavaPromiseSpec extends Specification {
146141
val == 10
147142
}
148143

149-
@PendingFeatureIf({
150-
// thrown() does currently not work with Groovy 5
151-
GroovySystem.version.startsWith('5')
152-
})
153144
void 'Test promise chaining with exception'() {
154145

155146
when: 'a promise is chained'

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package org.grails.async.factory.rxjava2
2020

2121
import grails.async.PromiseList
22-
import spock.lang.PendingFeatureIf
2322
import spock.lang.Specification
2423
import spock.util.concurrent.PollingConditions
2524

@@ -78,10 +77,6 @@ class RxPromiseListSpec extends Specification {
7877

7978
}
8079

81-
@PendingFeatureIf({
82-
// thrown() does currently not work with Groovy 5
83-
GroovySystem.version.startsWith('5')
84-
})
8580
void 'Test promise list with an exception'() {
8681

8782
given: 'a promise list with a promise that throws an exception'

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ package org.grails.async.factory.rxjava2
2020

2121
import grails.async.Promises
2222
import grails.async.decorator.PromiseDecorator
23-
import spock.lang.PendingFeatureIf
2423
import spock.lang.Specification
2524
import spock.util.concurrent.PollingConditions
2625

@@ -49,10 +48,6 @@ class RxPromiseSpec extends Specification {
4948

5049
}
5150

52-
@PendingFeatureIf({
53-
// thrown() does currently not work with Groovy 5
54-
GroovySystem.version.startsWith('5')
55-
})
5651
void 'Test promise timeout handling'() {
5752

5853
when: 'a promise that takes a while is created'
@@ -159,10 +154,6 @@ class RxPromiseSpec extends Specification {
159154
value == 10
160155
}
161156

162-
@PendingFeatureIf({
163-
// thrown() does currently not work with Groovy 5
164-
GroovySystem.version.startsWith('5')
165-
})
166157
void 'Test promise chaining with exception'() {
167158

168159
when: 'a promise is chained'

0 commit comments

Comments
 (0)