Skip to content

Commit

Permalink
Merge pull request #2136 from jorgemmsilva/chore/skip-flaky
Browse files Browse the repository at this point in the history
chore: skip flaky tests
  • Loading branch information
fijter authored Mar 20, 2023
2 parents 909ae18 + bd5bb9f commit 12d3bf8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions packages/chain/chainMgr/chainMgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import (
"github.com/iotaledger/wasp/packages/testutil/utxodb"
)

func TestBasic(t *testing.T) {
func TestChainMgrBasic(t *testing.T) {
t.Skip("flaky")
type test struct {
n int
f int
Expand All @@ -41,12 +42,12 @@ func TestBasic(t *testing.T) {
tst := tests[i]
t.Run(
fmt.Sprintf("N=%v,F=%v", tst.n, tst.f),
func(tt *testing.T) { testBasic(tt, tst.n, tst.f) },
func(tt *testing.T) { testChainMgrBasic(tt, tst.n, tst.f) },
)
}
}

func testBasic(t *testing.T, n, f int) {
func testChainMgrBasic(t *testing.T, n, f int) {
log := testlogger.NewLogger(t)
defer log.Sync()
//
Expand Down
7 changes: 4 additions & 3 deletions packages/chain/cmtLog/cmtLog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import (

// TODO: Test should involve suspend/resume.

func TestBasic(t *testing.T) {
func TestCmtLogBasic(t *testing.T) {
t.Skip("flaky")
type test struct {
n int
f int
Expand All @@ -33,11 +34,11 @@ func TestBasic(t *testing.T) {
for _, tst := range tests {
t.Run(
fmt.Sprintf("N=%v,F=%v", tst.n, tst.f),
func(tt *testing.T) { testBasic(tt, tst.n, tst.f) })
func(tt *testing.T) { testCmtLogBasic(tt, tst.n, tst.f) })
}
}

func testBasic(t *testing.T, n, f int) {
func testCmtLogBasic(t *testing.T, n, f int) {
log := testlogger.NewLogger(t)
defer log.Sync()
//
Expand Down

0 comments on commit 12d3bf8

Please sign in to comment.