You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def"reports failed condition of last failed attempt with condition method '#conditionMethod' and field"() {
164
164
when:
165
165
runner.runSpecBody """
166
-
PollingConditions conditions = new PollingConditions()
166
+
PollingConditions conditions = new PollingConditions(timeout: 0.1)
167
167
168
168
volatile int num = 0
169
169
volatile String str = null
@@ -198,7 +198,7 @@ class PollingConditionsSpec extends EmbeddedSpecification {
198
198
volatile String str = null
199
199
200
200
def 'a feature'() {
201
-
PollingConditions conditions = new PollingConditions()
201
+
PollingConditions conditions = new PollingConditions(timeout: 0.1)
202
202
num = 42
203
203
204
204
expect:
@@ -224,7 +224,7 @@ class PollingConditionsSpec extends EmbeddedSpecification {
224
224
def"fails if condition is not met and assert keyword is used for def declared conditions object with condition method '#conditionMethod' and field"() {
225
225
when:
226
226
runner.runSpecBody """
227
-
def defConditions = new PollingConditions()
227
+
def defConditions = new PollingConditions(timeout: 0.1)
228
228
volatile int num = 0
229
229
230
230
def 'a feature'() {
@@ -248,7 +248,7 @@ class PollingConditionsSpec extends EmbeddedSpecification {
248
248
def"fails if condition is not met and assert keyword is used for def declared conditions object with condition method '#conditionMethod' and local variable"() {
249
249
when:
250
250
runner.runSpecBody """
251
-
def defConditions = new PollingConditions()
251
+
def defConditions = new PollingConditions(timeout: 0.1)
252
252
volatile int num = 0
253
253
254
254
def 'a feature'() {
@@ -268,13 +268,13 @@ class PollingConditionsSpec extends EmbeddedSpecification {
268
268
conditionMethod << [".eventually", ".call", ""]
269
269
}
270
270
271
-
@PendingFeature(reason="Known limitation")
271
+
@PendingFeature(reason="Known limitation, cannot know the type of 'defConditions' at runtime")
def"fails if condition is not met and assert keyword is not used for def declared conditions object with condition method '#conditionMethod' and field"() {
275
275
when:
276
276
runner.runSpecBody """
277
-
def defConditions = new PollingConditions()
277
+
def defConditions = new PollingConditions(timeout: 0.1)
278
278
volatile int num = 0
279
279
280
280
def 'a feature'() {
@@ -294,13 +294,13 @@ class PollingConditionsSpec extends EmbeddedSpecification {
294
294
conditionMethod << [".eventually", ".call", ""]
295
295
}
296
296
297
-
@PendingFeature(reason="Known limitation")
297
+
@PendingFeature(reason="Known limitation, cannot know the type of 'defConditions' at runtime")
def"fails if condition is not met and assert keyword is not used for def declared conditions object with condition method '#conditionMethod' and local variable"() {
301
301
when:
302
302
runner.runSpecBody """
303
-
def defConditions = new PollingConditions()
303
+
def defConditions = new PollingConditions(timeout: 0.1)
304
304
volatile int num = 0
305
305
306
306
def 'a feature'() {
@@ -320,8 +320,7 @@ class PollingConditionsSpec extends EmbeddedSpecification {
0 commit comments