Skip to content

Commit

Permalink
Moving it to local utils
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gopalswami committed Nov 27, 2024
1 parent a1df7ec commit d7f9724
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration-tests/ccip-tests/smoke/ccip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (

"github.com/smartcontractkit/chainlink-testing-framework/lib/logging"
"github.com/smartcontractkit/chainlink-testing-framework/lib/utils/ptr"
"github.com/smartcontractkit/chainlink/integration-tests/ccip-tests/utils"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/evm_2_evm_onramp"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/lock_release_token_pool"
"github.com/smartcontractkit/chainlink/v2/core/gethwrappers/ccip/generated/token_pool"
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"

"github.com/smartcontractkit/chainlink/integration-tests/ccip-tests/actions"
"github.com/smartcontractkit/chainlink/integration-tests/ccip-tests/contracts"
Expand Down Expand Up @@ -889,7 +889,7 @@ func TestSmokeCCIPReorgBelowFinality(t *testing.T) {
// doesn't go through and verifies f+1 nodes is able to detect reorg.
// Note: LogPollInterval interval is set as 1s to detect the reorg immediately
func TestSmokeCCIPReorgAboveFinalityAtDestination(t *testing.T) {
testutils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/CCIP-4401")
utils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/CCIP-4401")
t.Parallel()
t.Run("Above finality reorg in destination chain", func(t *testing.T) {
performAboveFinalityReorgAndValidate(t, "Destination")
Expand All @@ -901,7 +901,7 @@ func TestSmokeCCIPReorgAboveFinalityAtDestination(t *testing.T) {
// shouldn't even get initiated and verifies f+1 nodes is able to detect reorg.
// Note: LogPollInterval interval is set as 1s to detect the reorg immediately
func TestSmokeCCIPReorgAboveFinalityAtSource(t *testing.T) {
testutils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/CCIP-4401")
utils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/CCIP-4401")
t.Parallel()
t.Run("Above finality reorg in source chain", func(t *testing.T) {
performAboveFinalityReorgAndValidate(t, "Source")
Expand Down
5 changes: 5 additions & 0 deletions integration-tests/ccip-tests/utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ import (
"path/filepath"
"runtime"
"sync"
"testing"
)

func ProjectRoot() string {
_, b, _, _ := runtime.Caller(0)
return filepath.Join(filepath.Dir(b), "/..")
}

func SkipFlakey(t *testing.T, ticketURL string) {
t.Skip("Flakey", ticketURL)
}

// DeleteNilEntriesFromMap checks for nil entry in map, store all not-nil entries to another map and deallocates previous map
// Deleting keys from a map actually does not delete the key, It just sets the corresponding value to nil.
func DeleteNilEntriesFromMap(inputMap *sync.Map) *sync.Map {
Expand Down

0 comments on commit d7f9724

Please sign in to comment.