Skip to content

Commit

Permalink
skip TestP2PRelay on circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
algorandskiy committed Jul 10, 2024
1 parent e27356b commit 6af46df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions network/p2pNetwork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import (
"fmt"
"io"
"net/http"
"os"
"slices"
"strings"
"sync"
"sync/atomic"
"testing"
Expand Down Expand Up @@ -802,6 +804,10 @@ func TestP2PHTTPHandler(t *testing.T) {
func TestP2PRelay(t *testing.T) {
partitiontest.PartitionTest(t)

if strings.ToUpper(os.Getenv("CIRCLECI")) == "TRUE" {
t.Skip("Flaky on CIRCLECI")
}

cfg := config.GetDefaultLocal()
cfg.DNSBootstrapID = "" // disable DNS lookups since the test uses phonebook addresses
cfg.ForceFetchTransactions = true
Expand Down Expand Up @@ -893,6 +899,7 @@ func TestP2PRelay(t *testing.T) {
log.Debugf("Starting netC with phonebook addresses %v", phoneBookAddresses)
netC, err := NewP2PNetwork(log.With("net", "netC"), cfg, "", phoneBookAddresses, genesisID, config.Devtestnet, &nopeNodeInfo{})
require.NoError(t, err)
require.True(t, netC.relayMessages)
err = netC.Start()
require.NoError(t, err)
defer netC.Stop()
Expand Down

0 comments on commit 6af46df

Please sign in to comment.