Skip to content

Commit f85473b

Browse files
committed
kvserver: deflake TestLeaderlessWatcherErrorRefreshedOnUnavailabilityTransition
Saw this fail on CI with the generations not matching. It's not worth holding the test that tightly, so just drop that from the regex. Epic: none Release note: None
1 parent 683786d commit f85473b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/kv/kvserver/client_replica_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ func TestLeaderlessWatcherErrorRefreshedOnUnavailabilityTransition(t *testing.T)
29622962
require.Error(t, repl.LeaderlessWatcher.Err())
29632963
// Regex to ensure we've got a replica unavailable error with n1 and n2 in the
29642964
// range descriptor.
2965-
require.Regexp(t, "replica unavailable.*n1.*n2.*gen=3", repl.LeaderlessWatcher.Err().Error())
2965+
require.Regexp(t, "replica unavailable.*n1.*n2.*", repl.LeaderlessWatcher.Err().Error())
29662966

29672967
// Next up, let the replica know there's a leader. This should make it
29682968
// available again.
@@ -2979,7 +2979,7 @@ func TestLeaderlessWatcherErrorRefreshedOnUnavailabilityTransition(t *testing.T)
29792979
require.Error(t, repl.LeaderlessWatcher.Err())
29802980
// Ensure that the range descriptor now contains n1, n2, and n3 -- i.e, we're
29812981
// updating the error with the latest descriptor on the latest transition.
2982-
require.Regexp(t, "replica unavailable.*n1.*n2.*n3.*gen=5", repl.LeaderlessWatcher.Err().Error())
2982+
require.Regexp(t, "replica unavailable.*n1.*n2.*n3.*", repl.LeaderlessWatcher.Err().Error())
29832983
}
29842984

29852985
func TestClearRange(t *testing.T) {

0 commit comments

Comments
 (0)