Skip to content

Commit ae49941

Browse files
committed
fix: lint pass
1 parent ae27c74 commit ae49941

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

modules/firebase/firebase.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
8282
}
8383

8484
// Check if user supplied root:
85-
rootPathIdx := slices.IndexFunc(req.ContainerRequest.Files, func(file testcontainers.ContainerFile) bool {
85+
rootPathIdx := slices.IndexFunc(req.Files, func(file testcontainers.ContainerFile) bool {
8686
return file.ContainerFilePath == rootFilePath
8787
})
8888
if rootPathIdx == -1 {
8989
return nil, ErrRootNotProvided
9090
}
9191

9292
// Parse expected emulators from the root:
93-
userRoot := req.ContainerRequest.Files[rootPathIdx].HostFilePath
93+
userRoot := req.Files[rootPathIdx].HostFilePath
9494
cfg, err := os.Open(path.Join(userRoot, "firebase.json"))
9595
if err != nil {
9696
return nil, fmt.Errorf("open firebase.json: %w", err)

modules/firebase/firebase_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"github.com/stretchr/testify/require"
1111

1212
"github.com/testcontainers/testcontainers-go"
13+
1314
"github.com/testcontainers/testcontainers-go/modules/firebase"
1415
)
1516

@@ -26,11 +27,11 @@ func TestFirebase(t *testing.T) {
2627
// perform requireions
2728
// Ports are linked to the example config in firebase/firebase.json
2829

29-
firestoreUrl, err := ctr.ConnectionString(ctx, "8080/tcp")
30+
firestoreURL, err := ctr.ConnectionString(ctx, "8080/tcp")
3031
require.NoError(t, err)
31-
require.NotEmpty(t, firestoreUrl)
32+
require.NotEmpty(t, firestoreURL)
3233

33-
t.Setenv("FIRESTORE_EMULATOR_HOST", firestoreUrl)
34+
t.Setenv("FIRESTORE_EMULATOR_HOST", firestoreURL)
3435
c, err := firestore.NewClient(ctx, firestore.DetectProjectID)
3536
require.NoError(t, err)
3637
defer c.Close()

modules/firebase/options.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
)
66

77
type options struct {
8-
emulators map[string]string
98
}
109

1110
// Compiler check to ensure that Option implements the testcontainers.ContainerCustomizer interface.

0 commit comments

Comments
 (0)