Skip to content

Commit

Permalink
Enable for k8 run
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gopalswami committed Aug 1, 2024
1 parent 3af7dfb commit 60656fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
17 changes: 9 additions & 8 deletions integration-tests/ccip-tests/chaos/reorg_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package chaos

import (
"fmt"
"github.com/stretchr/testify/require"
"testing"
"time"

Expand Down Expand Up @@ -188,14 +189,14 @@ func (r *ReorgSuite) RunReorgAboveFinalityThreshold(startDelay time.Duration) {
r.Logger.Info().
Int64("Number", blockNumber).
Msg("Block number after rewinding:")
//err = PostGrafanaAnnotation(
// r.Logger,
// r.GrafanaClient,
// r.Cfg.dashboardUID,
// fmt.Sprintf("rewinded dest chain for %d blocks back, finality is: %d", blocksBackDst, r.Cfg.DstFinalityDepth),
// nil,
//)
//require.NoError(r.t, err)
err = PostGrafanaAnnotation(
r.Logger,
r.GrafanaClient,
r.Cfg.dashboardUID,
fmt.Sprintf("rewinded dest chain for %d blocks back, finality is: %d", blocksBackDst, r.Cfg.DstFinalityDepth),
nil,
)
require.NoError(r.t, err)
time.Sleep(1 * time.Minute)
//time.Sleep(r.Cfg.ExperimentDuration)
}()
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -1105,10 +1105,10 @@ func SetupReorgSuite(t *testing.T, setupOutput *CCIPTestSetUpOutputs, testCfg *C
finalityDst = setupOutput.Cfg.SelectedNetworks[1].FinalityDepth
}
rs, err := ch.NewReorgSuite(t, &ch.ReorgConfig{
//SrcGethHTTPURL: setupOutput.Env.K8Env.URLs["source-chain_http"][0],
//DstGethHTTPURL: setupOutput.Env.K8Env.URLs["dest-chain_http"][0],
SrcGethHTTPURL: setupOutput.Env.LocalCluster.EVMNetworks[0].HTTPURLs[0],
DstGethHTTPURL: setupOutput.Env.LocalCluster.EVMNetworks[1].HTTPURLs[0],
SrcGethHTTPURL: setupOutput.Env.K8Env.URLs["source-chain_http"][0],
DstGethHTTPURL: setupOutput.Env.K8Env.URLs["dest-chain_http"][0],
//SrcGethHTTPURL: setupOutput.Env.LocalCluster.EVMNetworks[0].HTTPURLs[0],
//DstGethHTTPURL: setupOutput.Env.LocalCluster.EVMNetworks[1].HTTPURLs[0],
SrcFinalityDepth: finalitySrc,
DstFinalityDepth: finalityDst,
FinalityDelta: setupOutput.Cfg.TestGroupInput.ChaosReorgProfile.FinalityDelta,
Expand Down

0 comments on commit 60656fe

Please sign in to comment.