Skip to content

Commit a532f82

Browse files
committed
fix repeat until failure usage
1 parent 3264230 commit a532f82

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/test/groovy/graphql/ChainedDataLoaderTest.groovy

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import org.dataloader.BatchLoader
99
import org.dataloader.DataLoader
1010
import org.dataloader.DataLoaderFactory
1111
import org.dataloader.DataLoaderRegistry
12+
import spock.lang.RepeatUntilFailure
1213
import spock.lang.Specification
13-
import spock.lang.Unroll
1414

1515
import java.time.Duration
1616
import java.util.concurrent.Executors
@@ -86,7 +86,7 @@ class ChainedDataLoaderTest extends Specification {
8686
batchLoadCalls == 2
8787
}
8888

89-
@Unroll
89+
@RepeatUntilFailure(maxAttempts = 20, ignoreRest = false)
9090
def "parallel different data loaders"() {
9191
given:
9292
def sdl = '''
@@ -177,8 +177,6 @@ class ChainedDataLoaderTest extends Specification {
177177
er.data == [hello: "friendsLunakey1Skipperkey2", helloDelayed: "friendsLunakey1-delayedSkipperkey2-delayed"]
178178
batchLoadCalls.get() == 6
179179

180-
where:
181-
i << (0..20)
182180
}
183181

184182

@@ -339,7 +337,7 @@ class ChainedDataLoaderTest extends Specification {
339337
batchLoadCalls == 3
340338
}
341339

342-
def "chained data loaders with two isolated data loaders"() {
340+
def "chained data loaders with two delayed data loaders"() {
343341
given:
344342
def sdl = '''
345343
@@ -404,6 +402,7 @@ class ChainedDataLoaderTest extends Specification {
404402
batchLoadCalls.get() == 1
405403
}
406404

405+
@spock.lang.Ignore
407406
def "executor for delayed dispatching can be configured"() {
408407
given:
409408
def sdl = '''

src/test/groovy/graphql/GraphqlErrorHelperTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class GraphqlErrorHelperTest extends Specification {
156156
}
157157
}
158158

159-
@RepeatUntilFailure(maxAttempts = 1_000)
159+
@RepeatUntilFailure(maxAttempts = 1_000, ignoreRest = false)
160160
def "can deterministically serialize SourceLocation"() {
161161
when:
162162
def specMap = GraphqlErrorHelper.toSpecification(new TestError())

src/test/groovy/graphql/execution/instrumentation/dataloader/DeferWithDataLoaderTest.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ class DeferWithDataLoaderTest extends Specification {
349349
batchCompareDataFetchers.productsForDepartmentsBatchLoaderCounter.get() == 1
350350
}
351351

352-
@RepeatUntilFailure(maxAttempts = 50)
352+
@RepeatUntilFailure(maxAttempts = 50, ignoreRest = false)
353+
// skip until
353354
def "dataloader in initial result and chained dataloader inside nested defer block"() {
354355
given:
355356
def sdl = '''

src/test/groovy/graphql/execution/instrumentation/dataloader/Issue1178DataLoaderDispatchTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import static graphql.schema.idl.TypeRuntimeWiring.newTypeWiring
2222
class Issue1178DataLoaderDispatchTest extends Specification {
2323

2424

25-
@RepeatUntilFailure(maxAttempts = 100)
25+
@RepeatUntilFailure(maxAttempts = 100, ignoreRest = false)
2626
def "shouldn't dispatch twice in multithreaded env"() {
2727
setup:
2828
def sdl = """

0 commit comments

Comments
 (0)