Skip to content

Commit

Permalink
fix: added testutil retry for backend test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Jan 15, 2025
1 parent 42b1104 commit be6649c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth/rpc/backend/backend_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"
"time"

"github.com/NibiruChain/nibiru/v2/x/common/testutil"
"github.com/cosmos/cosmos-sdk/client/flags"
sdk "github.com/cosmos/cosmos-sdk/types"
gethcommon "github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -66,7 +67,9 @@ type BackendSuite struct {
}

func TestBackendSuite(t *testing.T) {
suite.Run(t, new(BackendSuite))
testutil.RetrySuiteRunIfDbClosed(t, func() {
suite.Run(t, new(BackendSuite))
}, 2)
}

func (s *BackendSuite) SetupSuite() {
Expand Down

0 comments on commit be6649c

Please sign in to comment.