Skip to content

Commit

Permalink
add sleep before rest build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jun 30, 2023
1 parent f4f8061 commit 2c01caf
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions interchaintest/client_threshold_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"testing"
"time"

relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
Expand Down Expand Up @@ -79,6 +80,8 @@ func TestScenarioClientThresholdUpdate(t *testing.T) {
rep := testreporter.NewNopReporter()
eRep := rep.RelayerExecReporter(t)

time.Sleep(DATA_RACE_SLEEP)

// Build interchain
require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Expand Down Expand Up @@ -195,6 +198,8 @@ func TestScenarioClientTrustingPeriodUpdate(t *testing.T) {
rep := testreporter.NewNopReporter()
eRep := rep.RelayerExecReporter(t)

time.Sleep(DATA_RACE_SLEEP)

// Build interchain
require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Expand Down
2 changes: 2 additions & 0 deletions interchaintest/ica_channel_close_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func TestScenarioICAChannelClose(t *testing.T) {
Path: pathName,
})

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
2 changes: 2 additions & 0 deletions interchaintest/interchain_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func TestScenarioInterchainAccounts(t *testing.T) {
Path: pathName,
})

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
2 changes: 2 additions & 0 deletions interchaintest/misbehaviour_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func TestScenarioMisbehaviourDetection(t *testing.T) {
rep := testreporter.NewNopReporter()
eRep := rep.RelayerExecReporter(t)

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
3 changes: 3 additions & 0 deletions interchaintest/multi_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package interchaintest_test
import (
"context"
"testing"
"time"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
Expand Down Expand Up @@ -69,6 +70,8 @@ func TestMultipleChannelsOneConnection(t *testing.T) {

ctx := context.Background()

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
5 changes: 5 additions & 0 deletions interchaintest/path_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"fmt"
"testing"
"time"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
Expand Down Expand Up @@ -62,6 +63,8 @@ func TestScenarioPathFilterAllow(t *testing.T) {

client, network := interchaintest.DockerSetup(t)

time.Sleep(DATA_RACE_SLEEP)

// Build interchain
require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Expand Down Expand Up @@ -199,6 +202,8 @@ func TestScenarioPathFilterDeny(t *testing.T) {

client, network := interchaintest.DockerSetup(t)

time.Sleep(DATA_RACE_SLEEP)

// Build interchain
require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Expand Down
3 changes: 3 additions & 0 deletions interchaintest/relay_many_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package interchaintest_test
import (
"context"
"testing"
"time"

transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"
relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
Expand Down Expand Up @@ -85,6 +86,8 @@ func TestRelayerMultiplePathsSingleProcess(t *testing.T) {

client, network := interchaintest.DockerSetup(t)

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
3 changes: 3 additions & 0 deletions interchaintest/relayer_override_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"testing"
"time"

"github.com/cosmos/relayer/v2/cmd"
relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
Expand Down Expand Up @@ -72,6 +73,8 @@ func TestClientOverrideFlag(t *testing.T) {
Path: pathGaiaOsmosis,
})

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, eRep, interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down
3 changes: 3 additions & 0 deletions interchaintest/tendermint_v0.37_boundary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package interchaintest_test
import (
"context"
"testing"
"time"

relayerinterchaintest "github.com/cosmos/relayer/v2/interchaintest"
interchaintest "github.com/strangelove-ventures/interchaintest/v7"
Expand Down Expand Up @@ -73,6 +74,8 @@ func TestScenarioTendermint37Boundary(t *testing.T) {

rep := testreporter.NewNopReporter()

time.Sleep(DATA_RACE_SLEEP)

require.NoError(t, ic.Build(ctx, rep.RelayerExecReporter(t), interchaintest.InterchainBuildOptions{
TestName: t.Name(),
Client: client,
Expand Down

0 comments on commit 2c01caf

Please sign in to comment.