Skip to content

Commit

Permalink
skipped test cleanup (#11026)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Oct 30, 2023
1 parent 2df49da commit b655080
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 18 deletions.
4 changes: 4 additions & 0 deletions core/internal/testutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,7 @@ func MustDecodeBase64(s string) (b []byte) {
}
return
}

func SkipFlakey(t *testing.T, ticketURL string) {
t.Skip("Flakey", ticketURL)
}
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,7 @@ func TestIntegration_LogEventProvider_RateLimit(t *testing.T) {
}

func TestIntegration_LogRecoverer_Backfill(t *testing.T) {
t.Skip() // TODO: remove skip after removing constant timeouts
ctx, cancel := context.WithTimeout(testutils.Context(t), time.Second*60)
defer cancel()
ctx := testutils.Context(t)

backend, stopMining, accounts := setupBackend(t)
defer stopMining()
Expand Down Expand Up @@ -515,21 +513,21 @@ func TestIntegration_LogRecoverer_Backfill(t *testing.T) {
}()
defer recoverer.Close()

lctx, lcancel := context.WithTimeout(ctx, time.Second*15)
defer lcancel()
var allProposals []ocr2keepers.UpkeepPayload
for lctx.Err() == nil {
for {
poll(backend.Commit())
proposals, err := recoverer.GetRecoveryProposals(ctx)
require.NoError(t, err)
allProposals = append(allProposals, proposals...)
if len(allProposals) < n {
time.Sleep(100 * time.Millisecond)
continue
if len(allProposals) >= n {
break // success
}
select {
case <-ctx.Done():
t.Fatalf("could not recover logs before timeout: %s", ctx.Err())
case <-time.After(100 * time.Millisecond):
}
break
}
require.NoError(t, lctx.Err(), "could not recover logs before timeout")
}

func collectPayloads(ctx context.Context, t *testing.T, logProvider logprovider.LogEventProvider, n, rounds int) []ocr2keepers.UpkeepPayload {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,12 @@ func setupNodeOCR2(
}

func TestIntegration_OCR2VRF_ForwarderFlow(t *testing.T) {
t.Skip()
testutils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/VRF-688")
runOCR2VRFTest(t, true)
}

func TestIntegration_OCR2VRF(t *testing.T) {
t.Skip()
testutils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/VRF-688")
runOCR2VRFTest(t, false)
}

Expand Down
5 changes: 3 additions & 2 deletions core/services/synchronization/uni_client_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ import (
"testing"
"time"

"github.com/smartcontractkit/wsrpc"
"github.com/stretchr/testify/require"

"github.com/smartcontractkit/wsrpc"

"github.com/smartcontractkit/chainlink/v2/core/internal/testutils"
"github.com/smartcontractkit/chainlink/v2/core/logger"
"github.com/smartcontractkit/chainlink/v2/core/services/synchronization/telem"
)

func TestUniClient(t *testing.T) {
t.Skip()
t.Skip("Incomplete", "https://smartcontract-it.atlassian.net/browse/BCF-2729")
privKey, err := hex.DecodeString("TODO")
require.NoError(t, err)
pubKey, err := hex.DecodeString("TODO")
Expand Down
4 changes: 1 addition & 3 deletions core/services/vrf/v2/integration_v2_plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,7 @@ func TestVRFV2PlusIntegration_SingleConsumer_EOA_Request_Batching_Enabled(t *tes
}

func TestVRFV2PlusIntegration_SingleConsumer_EIP150_HappyPath(t *testing.T) {
// See: https://smartcontract-it.atlassian.net/browse/VRF-589
// Temporarily skipping to figure out issue with test
t.Skip()
testutils.SkipFlakey(t, "https://smartcontract-it.atlassian.net/browse/VRF-589")
t.Parallel()
ownerKey := cltest.MustGenerateRandomKey(t)
uni := newVRFCoordinatorV2PlusUniverse(t, ownerKey, 1, false)
Expand Down

0 comments on commit b655080

Please sign in to comment.