Skip to content

Commit

Permalink
Fix race issue with errors
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Jul 1, 2024
1 parent 8edd8bd commit a57a57c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/vtgate/endtoend/connectiondrain/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func TestConnectionDrainOnTermTimeout(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
var err error
_, err = vtConn.ExecuteFetch("select sleep(40)", 1, false)
require.Error(t, err)
}()
Expand Down

0 comments on commit a57a57c

Please sign in to comment.