From a239dc6b11f736bba02193c0452904ae7904b327 Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Thu, 23 Jan 2025 16:42:29 +0000 Subject: [PATCH] Check that we do not hvae cancel migration failed in errors Signed-off-by: Matt Lord --- go/test/endtoend/vreplication/vreplication_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/test/endtoend/vreplication/vreplication_test.go b/go/test/endtoend/vreplication/vreplication_test.go index 1f8f3ff6c9d..32ef7a95374 100644 --- a/go/test/endtoend/vreplication/vreplication_test.go +++ b/go/test/endtoend/vreplication/vreplication_test.go @@ -904,6 +904,7 @@ func shardCustomer(t *testing.T, testReverse bool, cells []*Cell, sourceCellOrAl require.Error(t, err) require.Regexp(t, fmt.Sprintf(".*cannot switch traffic for workflow %s at this time: replication lag [0-9]+s is higher than allowed lag %s.*", workflow, lagDuration.String()), out) + require.NotContains(t, out, "cancel migration failed") cleanupTestData() waitForTargetToCatchup() @@ -921,6 +922,7 @@ func shardCustomer(t *testing.T, testReverse bool, cells []*Cell, sourceCellOrAl // successfully cancel. require.Error(t, err) require.Contains(t, out, "failed to sync up replication between the source and target") + require.NotContains(t, out, "cancel migration failed") unlockTargetTable() deleteTestRows() waitForTargetToCatchup()