Skip to content

Commit

Permalink
Fix issue with update testcontainers API
Browse files Browse the repository at this point in the history
  • Loading branch information
dopey committed May 28, 2024
1 parent 5c4a014 commit 97d5301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ const (
var postgresDataSource string

func withSchemaSQL() testcontainers.CustomizeRequestOption {
return func(req *testcontainers.GenericContainerRequest) {
return func(req *testcontainers.GenericContainerRequest) error {
req.Files = append(req.Files, testcontainers.ContainerFile{
HostFilePath: filepath.Join("testdata", "schema.sql"),
ContainerFilePath: "/tmp/schema.sql",
FileMode: 0644,
})
return nil
}
}

Expand Down

0 comments on commit 97d5301

Please sign in to comment.