Skip to content

Commit af4d00f

Browse files
committed
fix: resolve testcontainers timeout and golangci-lint exportloopref error in integration tests
1 parent 3926fd4 commit af4d00f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/db/schema_integration_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestSchemaIntrospectionIntegration(t *testing.T) {
3030
testcontainers.WithWaitStrategy(
3131
wait.ForLog("database system is ready to accept connections").
3232
WithOccurrence(2).
33-
WithStartupTimeout(5*time.Second)),
33+
WithStartupTimeout(60*time.Second)),
3434
)
3535
require.NoError(t, err)
3636

@@ -76,9 +76,9 @@ func TestSchemaIntrospectionIntegration(t *testing.T) {
7676

7777
// Verify "users" table
7878
var usersTable *types.Table
79-
for _, t := range schemaObj.Tables {
80-
if t.Name == "users" {
81-
usersTable = &t
79+
for i := range schemaObj.Tables {
80+
if schemaObj.Tables[i].Name == "users" {
81+
usersTable = &schemaObj.Tables[i]
8282
break
8383
}
8484
}

0 commit comments

Comments
 (0)