Skip to content

Commit 8bbbfaa

Browse files
committed
Fix
1 parent 04deedf commit 8bbbfaa

File tree

1 file changed

+7
-5
lines changed
  • firebase-firestore/src/androidTest/java/com/google/firebase/firestore

1 file changed

+7
-5
lines changed

firebase-firestore/src/androidTest/java/com/google/firebase/firestore/PipelineTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,15 @@ public void groupAndAccumulateResultsGeneric() {
279279
firestore
280280
.pipeline()
281281
.collection(randomCol)
282-
.genericStage("where", lt(field("published"), 1984))
282+
.genericStage(GenericStage.ofName("where").withArguments(lt(field("published"), 1984)))
283283
.genericStage(
284-
"aggregate",
285-
ImmutableMap.of("avgRating", AggregateFunction.avg("rating")),
286-
ImmutableMap.of("genre", field("genre")))
284+
GenericStage.ofName("aggregate")
285+
.withArguments(
286+
ImmutableMap.of("avgRating", AggregateFunction.avg("rating")),
287+
ImmutableMap.of("genre", field("genre"))))
287288
.genericStage(GenericStage.ofName("where").withArguments(gt("avgRating", 4.3)))
288-
.genericStage("sort", field("avgRating").descending())
289+
.genericStage(
290+
GenericStage.ofName("sort").withArguments(field("avgRating").descending()))
289291
.execute();
290292
assertThat(waitFor(execute).getResults())
291293
.comparingElementsUsing(DATA_CORRESPONDENCE)

0 commit comments

Comments
 (0)