Skip to content

Commit

Permalink
test(bigtable): Add retries while getting app profile (#8751)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh authored Oct 25, 2023
1 parent b1409e3 commit 7bb630b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bigtable/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2862,11 +2862,14 @@ func TestIntegration_InstanceAdminClient_AppProfile(t *testing.T) {
continue
}

got, _ := iAdminClient.GetAppProfile(ctx, adminClient.instance, profileID)
// Retry to see if the update has been completed
testutil.Retry(t, 10, 10*time.Second, func(r *testutil.R) {
got, _ := iAdminClient.GetAppProfile(ctx, adminClient.instance, profileID)

if !proto.Equal(got, test.want) {
t.Fatalf("%s : got profile : %v, want profile: %v", test.desc, gotProfile, test.want)
}
if !proto.Equal(got, test.want) {
r.Errorf("%s : got profile : %v, want profile: %v", test.desc, gotProfile, test.want)
}
})

}

Expand Down

0 comments on commit 7bb630b

Please sign in to comment.