CloudMigrations: Increase timeout of eventual checks and add debug message (#112714)

This commit is contained in:
Matheus Macabu
2025-10-21 12:58:29 +02:00
committed by GitHub
parent 7be30abab0
commit 6158167163
@@ -435,16 +435,17 @@ func Test_OnlyQueriesStatusFromGMSWhenRequired(t *testing.T) {
require.Eventually(
t,
func() bool { return gmsClientMock.GetSnapshotStatusCallCount() == i+1 },
2*time.Second,
5*time.Second,
100*time.Millisecond,
"GMS client mock GetSnapshotStatus count: %d", gmsClientMock.GetSnapshotStatusCallCount(),
"GMS client mock GetSnapshotStatus count: %d on status: %s (want: %d)",
gmsClientMock.GetSnapshotStatusCallCount(), string(status), i+1,
)
}
assert.Never(
t,
func() bool { return gmsClientMock.GetSnapshotStatusCallCount() > 2 },
2*time.Second,
5*time.Second,
100*time.Millisecond,
"GMS client mock GetSnapshotStatus called more than expected: %d times", gmsClientMock.GetSnapshotStatusCallCount(),
)