This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
examples/pubsub-demo/src/integration-test/groovy/pubsub/demo
grails-async-core/src/test/groovy/grails/async
grails-async-rxjava/src/test/groovy/org/grails/async/factory/rxjava Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import io.micronaut.http.HttpStatus
7
7
import io.micronaut.http.client.HttpClient
8
8
import io.micronaut.http.client.exceptions.HttpClientResponseException
9
9
import spock.lang.AutoCleanup
10
- import spock.lang.Ignore
10
+ import spock.lang.PendingFeature
11
11
import spock.lang.Shared
12
12
import spock.lang.Specification
13
13
@@ -25,7 +25,11 @@ class TaskControllerSpec extends Specification {
25
25
client = HttpClient . create(" http://localhost:$serverPort " . toURL())
26
26
}
27
27
28
- @Ignore
28
+ @PendingFeature (reason = '''
29
+ For some reason the response body is blank with bootTestRun.
30
+ However, when starting the application with bootRun,
31
+ the response body is as expected.
32
+ ''' )
29
33
void ' test async error handling' () {
30
34
31
35
when : ' we invoke an endpoint that throws an exception'
Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2013 SpringSource
2
+ * Copyright 2013-2024 the original author or authors
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
- * http ://www.apache.org/licenses/LICENSE-2.0
8
+ * https ://www.apache.org/licenses/LICENSE-2.0
9
9
*
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS,
15
15
*/
16
16
package grails.async
17
17
18
- import spock.lang.Ignore
18
+ import spock.lang.PendingFeature
19
19
import spock.lang.Specification
20
20
import spock.util.concurrent.PollingConditions
21
21
@@ -97,7 +97,7 @@ class PromiseMapSpec extends Specification {
97
97
err. message == ' java.lang.RuntimeException: bad'
98
98
}
99
99
100
- @Ignore ( '''
100
+ @PendingFeature ( reason = '''
101
101
This test fails because the chained call to then does not use the
102
102
map returned from the previous closure. So the same first map
103
103
is returned over and over.
Original file line number Diff line number Diff line change 1
1
package org.grails.async.factory.rxjava
2
2
3
3
import grails.async.PromiseMap
4
- import spock.lang.Ignore
4
+ import spock.lang.PendingFeature
5
5
import spock.lang.Specification
6
6
import spock.util.concurrent.PollingConditions
7
7
@@ -86,7 +86,7 @@ class RxJavaPromiseMapSpec extends Specification{
86
86
}
87
87
}
88
88
89
- @Ignore ( '''
89
+ @PendingFeature ( reason = '''
90
90
This test fails because the chained call to then does not use the
91
91
map returned from the previous closure. So the same first map
92
92
is returned over and over.
@@ -97,10 +97,8 @@ class RxJavaPromiseMapSpec extends Specification{
97
97
def map = new PromiseMap ()
98
98
map[' one' ] = { 1 }
99
99
def promise = map. then {
100
- println it
101
100
it[' four' ] = 4 ; it
102
101
}. then {
103
- println it
104
102
it[' eight' ] = 8 ; it
105
103
}
106
104
def result = promise. get()
You can’t perform that action at this time.
0 commit comments