Skip to content

Commit d485dcc

Browse files
committed
Fix test failure in reactive QBE test
See gh-597
1 parent 650137f commit d485dcc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

spring-graphql/src/test/java/org/springframework/graphql/data/query/mongo/QueryByExampleDataFetcherReactiveMongoDbTests.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ void shouldReactivelyFetchMultipleItems() {
148148
@Test
149149
void shouldFetchWindow() {
150150

151-
repository.saveAll(List.of(
152-
new Book("1", "Nineteen Eighty-Four", new Author("0", "George", "Orwell")),
153-
new Book("2", "The Great Gatsby", new Author("0", "F. Scott", "Fitzgerald")),
154-
new Book("3", "Catch-22", new Author("0", "Joseph", "Heller")),
155-
new Book("42", "Hitchhiker's Guide to the Galaxy", new Author("0", "Douglas", "Adams")),
156-
new Book("53", "Breaking Bad", new Author("0", "", "Heisenberg"))));
151+
repository.saveAll(Flux.just(
152+
new Book("1", "Nineteen Eighty-Four", new Author("0", "George", "Orwell")),
153+
new Book("2", "The Great Gatsby", new Author("0", "F. Scott", "Fitzgerald")),
154+
new Book("3", "Catch-22", new Author("0", "Joseph", "Heller")),
155+
new Book("42", "Hitchhiker's Guide to the Galaxy", new Author("0", "Douglas", "Adams")),
156+
new Book("53", "Breaking Bad", new Author("0", "", "Heisenberg"))))
157+
.blockLast();
157158

158159
Consumer<GraphQlSetup> tester = graphQlSetup -> {
159160

0 commit comments

Comments
 (0)