Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bridge/standard/pkg/store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"math/big"
"testing"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/primev/mev-commit/bridge/standard/pkg/store"
Expand Down Expand Up @@ -33,7 +34,12 @@ func TestStore(t *testing.T) {
"POSTGRES_USER": "user",
"POSTGRES_PASSWORD": "password",
},
WaitingFor: wait.ForListeningPort("5432/tcp"),
WaitingFor: wait.ForAll(
wait.ForLog("database system is ready to accept connections").
WithOccurrence(2).
WithStartupTimeout(60*time.Second),
wait.ForListeningPort("5432/tcp"),
),
}

// Start the PostgreSQL container
Expand Down
8 changes: 7 additions & 1 deletion oracle/pkg/store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"fmt"
"math/big"
"testing"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/google/go-cmp/cmp"
Expand Down Expand Up @@ -46,7 +47,12 @@ func TestStore(t *testing.T) {
"POSTGRES_USER": "user",
"POSTGRES_PASSWORD": "password",
},
WaitingFor: wait.ForListeningPort("5432/tcp"),
WaitingFor: wait.ForAll(
wait.ForLog("database system is ready to accept connections").
WithOccurrence(2).
WithStartupTimeout(60*time.Second),
wait.ForListeningPort("5432/tcp"),
),
}

// Start the PostgreSQL container
Expand Down
7 changes: 6 additions & 1 deletion tools/preconf-rpc/store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ func TestStore(t *testing.T) {
"POSTGRES_USER": "user",
"POSTGRES_PASSWORD": "password",
},
WaitingFor: wait.ForListeningPort("5432/tcp"),
WaitingFor: wait.ForAll(
wait.ForLog("database system is ready to accept connections").
WithOccurrence(2).
WithStartupTimeout(60*time.Second),
wait.ForListeningPort("5432/tcp"),
),
}

// Start the PostgreSQL container
Expand Down
Loading