From 9c8a7c1e16fdf7ab6a887282ef93f8fc85ae4237 Mon Sep 17 00:00:00 2001 From: SoXX Date: Thu, 27 Jun 2024 22:18:35 +0200 Subject: [PATCH] fix(tests): remove timeout Signed-off-by: SoXX --- test/helper.go | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/helper.go b/test/helper.go index bb3f057..93a185e 100644 --- a/test/helper.go +++ b/test/helper.go @@ -3,17 +3,15 @@ package test import ( "context" "database/sql" - "net/url" - "strconv" - "strings" - "time" - "git.dragse.it/anthrove/otter-space-sdk/pkg/models" migrate "github.com/rubenv/sql-migrate" postgrescontainer "github.com/testcontainers/testcontainers-go/modules/postgres" "gorm.io/driver/postgres" "gorm.io/gorm" "gorm.io/gorm/logger" + "net/url" + "strconv" + "strings" "github.com/testcontainers/testcontainers-go" "github.com/testcontainers/testcontainers-go/wait" @@ -34,9 +32,7 @@ func StartPostgresContainer(ctx context.Context) (*postgrescontainer.PostgresCon postgrescontainer.WithUsername(databaseUser), postgrescontainer.WithPassword(databasePassword), testcontainers.WithWaitStrategy( - wait.ForLog("database system is ready to accept connections"). - WithOccurrence(2).WithStartupTimeout(10*time.Second)), - ) + wait.ForLog("database system is ready to accept connections"))) if err != nil { return nil, nil, err }