Skip to content

Commit

Permalink
Skip go repl facky test yet again (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergekh2 authored Jul 15, 2024
1 parent 1893e10 commit 6f5e4ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/node/rpc/repl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/river-build/river/core/node/crypto"
"github.com/river-build/river/core/node/protocol"
"github.com/river-build/river/core/node/testutils"
)

func TestReplCreate(t *testing.T) {
Expand Down Expand Up @@ -52,6 +53,8 @@ func TestReplAdd(t *testing.T) {
}

func TestReplMiniblock(t *testing.T) {
testutils.SkipFlackyTest(t)

tt := newServiceTester(t, serviceTesterOpts{numNodes: 5, replicationFactor: 5, start: true})
ctx := tt.ctx
require := tt.require
Expand Down
12 changes: 12 additions & 0 deletions core/node/testutils/skip.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package testutils

import (
"os"
"testing"
)

func SkipFlackyTest(t *testing.T) {
if os.Getenv("RIVER_TEST_ENABLE_FLACKY") == "" {
t.Skip("skipping flacky test")
}
}

0 comments on commit 6f5e4ff

Please sign in to comment.