Skip to content

Commit

Permalink
test(firestore): Expand partition queries test to help root out a fla…
Browse files Browse the repository at this point in the history
…ky test (#4721)
  • Loading branch information
crwilcox authored Sep 3, 2021
1 parent ffa903e commit c264b1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions firestore/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,7 @@ func TestIntegration_ColGroupRefPartitions(t *testing.T) {
doc := coll.NewDoc()
h.mustCreate(doc, integrationTestMap)

for _, tc := range []struct {
for idx, tc := range []struct {
collectionID string
expectedPartitionCount int
}{
Expand All @@ -1626,7 +1626,10 @@ func TestIntegration_ColGroupRefPartitions(t *testing.T) {
t.Fatalf("getPartitions: received unexpected error: %v", err)
}
if got, want := len(partitions), tc.expectedPartitionCount; got != want {
t.Errorf("Unexpected Partition Count: got %d, want %d", got, want)
t.Errorf("Unexpected Partition Count:index:%d, got %d, want %d", idx, got, want)
for _, v := range partitions {
t.Errorf("Partition: %v, %v", v.startDoc, v.endDoc)
}
}
}
}
Expand Down

0 comments on commit c264b1f

Please sign in to comment.