Skip to content

Commit 2209559

Browse files
authored
Merge pull request #2539 from dolthub/aaron/more-waitforstop
[no-release-notes] testing/go: binding_test.go: Fix another missing WaitForStop.
2 parents f66b184 + b0dcd47 commit 2209559

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

testing/go/binding_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ func TestBindingWithOidZero(t *testing.T) {
5656
func TestIssue2386(t *testing.T) {
5757
// https://github.com/dolthub/doltgresql/issues/2386
5858
ctx, connection, controller := CreateServer(t, "postgres")
59-
defer controller.Stop()
59+
defer func() {
60+
connection.Close(ctx)
61+
controller.Stop()
62+
require.NoError(t, controller.WaitForStop())
63+
}()
6064
conn := connection.Default
6165
_, err := connection.Exec(ctx, "CREATE TABLE users (id INT PRIMARY KEY, name TEXT NOT NULL);")
6266
require.NoError(t, err)

0 commit comments

Comments
 (0)