Skip to content

Commit

Permalink
Merge pull request #100959 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-22.2-100837

release-22.2: roachtest: fix assertion in drain test
  • Loading branch information
rafiss authored Apr 7, 2023
2 parents 7fc390a + 8512e38 commit 95b157f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/tests/drain.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func runClusterNotAtQuorum(ctx context.Context, t test.Test, c cluster.Cluster)
"./cockroach node drain --self --insecure --drain-wait=10s",
)
t.L().Printf("drain output:\n%s\n%s\n", results.Stdout, results.Stderr)
require.Contains(t, results.Stderr, "could not check drain related cluster settings")
require.Regexp(t, "(cluster settings require a value of at least|could not check drain related cluster settings)", results.Stderr)
}

// prepareCluster is to start the server on nodes in the given cluster, and set
Expand Down

0 comments on commit 95b157f

Please sign in to comment.