Skip to content

Commit

Permalink
Merge pull request #109674 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.1-109643

release-23.1: ccl/sqlproxyccl: deflake TestDenylistUpdate
  • Loading branch information
jaylim-crl authored Aug 29, 2023
2 parents dfe52dc + c4d2f76 commit e57d7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ccl/sqlproxyccl/proxy_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@ func TestDenylistUpdate(t *testing.T) {
"Expected the connection to eventually fail",
)
require.Error(t, err)
require.Regexp(t, "closed|bad connection", err.Error())
require.Regexp(t, "(connection reset by peer|closed|bad connection)", err.Error())
require.Equal(t, int64(1), s.metrics.ExpiredClientConnCount.Count())
}

Expand Down Expand Up @@ -2321,7 +2321,7 @@ func TestConnectionMigration(t *testing.T) {
t.Fatalf("require that pg_sleep query terminates")
case err = <-errCh:
require.Error(t, err)
require.Regexp(t, "(closed|bad connection)", err.Error())
require.Regexp(t, "(connection reset by peer|closed|bad connection)", err.Error())
}

require.EqualError(t, f.ctx.Err(), context.Canceled.Error())
Expand Down

0 comments on commit e57d7e6

Please sign in to comment.