Skip to content

Commit

Permalink
Cherry-pick 2d1e96a with conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitess-bot[bot] authored and vitess-bot committed Nov 8, 2024
1 parent bd8a4b1 commit 51d591d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions go/mysql/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,13 @@ func TestListenerShutdown(t *testing.T) {

l.Shutdown()

<<<<<<< HEAD

Check failure on line 1427 in go/mysql/server_test.go

View workflow job for this annotation

GitHub Actions / Code Coverage

expected statement, found '<<'

Check failure on line 1427 in go/mysql/server_test.go

View workflow job for this annotation

GitHub Actions / Code Coverage

expected statement, found '<<'
waitForConnRefuse(t, 1)
=======
require.Eventually(t, func() bool {
return connRefuse.Get() == 1
}, 1*time.Minute, 100*time.Millisecond, "could not reach the desired connRefuse value")
>>>>>>> 2d1e96ac46 (Fix flakiness in `TestListenerShutdown` (#17024))

err = conn.Ping()
require.EqualError(t, err, "Server shutdown in progress (errno 1053) (sqlstate 08S01)")
Expand All @@ -1436,6 +1442,7 @@ func TestListenerShutdown(t *testing.T) {
require.Equal(t, "Server shutdown in progress", sqlErr.Message)
}

<<<<<<< HEAD
func waitForConnRefuse(t *testing.T, valWanted int64) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
Expand All @@ -1454,6 +1461,8 @@ func waitForConnRefuse(t *testing.T, valWanted int64) {
}
}

=======
>>>>>>> 2d1e96ac46 (Fix flakiness in `TestListenerShutdown` (#17024))
func TestParseConnAttrs(t *testing.T) {
expected := map[string]string{
"_client_version": "8.0.11",
Expand Down

0 comments on commit 51d591d

Please sign in to comment.