Skip to content

Commit 2c6bbce

Browse files
ottokkenshaw
authored andcommitted
Use new Docker container class as Container*Options() was deprecated
Newer Docker versions have moved the container methods to a new class. Adopt code to use them so usql builds pass with newer Docker libraries.
1 parent 9b7a9b7 commit 2c6bbce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/sqlite3/sqshared/reader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func createDb(location, name string) error {
9595
return err
9696
}
9797

98-
err = cli.ContainerStart(ctx, resp.ID, types.ContainerStartOptions{})
98+
err = cli.ContainerStart(ctx, resp.ID, container.StartOptions{})
9999
if err != nil {
100100
return err
101101
}
@@ -120,7 +120,7 @@ func createDb(location, name string) error {
120120
// return err
121121
//}
122122

123-
return cli.ContainerRemove(ctx, resp.ID, types.ContainerRemoveOptions{})
123+
return cli.ContainerRemove(ctx, resp.ID, container.RemoveOptions{})
124124
}
125125

126126
func TestSchemas(t *testing.T) {

0 commit comments

Comments
 (0)