Skip to content

Commit 993c976

Browse files
committed
Update withDataYamlFile to return error
1 parent 2993c7a commit 993c976

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/gcloud/gcloud.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func WithProjectID(projectID string) Option {
7373

7474
// WithDataYamlFile seeds the Bigquery project for the GCloud container.
7575
func WithDataYamlFile(dataYamlFile string) testcontainers.CustomizeRequestOption {
76-
return func(req *testcontainers.GenericContainerRequest) {
76+
return func(req *testcontainers.GenericContainerRequest) error {
7777
dataFile := testcontainers.ContainerFile{
7878
HostFilePath: dataYamlFile,
7979
ContainerFilePath: "/data.yaml",
@@ -82,6 +82,8 @@ func WithDataYamlFile(dataYamlFile string) testcontainers.CustomizeRequestOption
8282

8383
req.Files = append(req.Files, dataFile)
8484
req.Cmd = append(req.Cmd, "--data-from-yaml", "/data.yaml")
85+
86+
return nil
8587
}
8688
}
8789

0 commit comments

Comments
 (0)