From c264b1faebdf7f6c33ebe7718824da2955b16141 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Thu, 2 Sep 2021 17:29:43 -0700 Subject: [PATCH] test(firestore): Expand partition queries test to help root out a flaky test (#4721) --- firestore/integration_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firestore/integration_test.go b/firestore/integration_test.go index 7e1075a1d6c..bbfbbae46a9 100644 --- a/firestore/integration_test.go +++ b/firestore/integration_test.go @@ -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 }{ @@ -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) + } } } }