Skip to content

Commit

Permalink
chg: skip snap synced tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcello33 committed Sep 10, 2024
1 parent fe5d813 commit 955eb3d
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions core/blockchain_repair_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,15 @@ func testShortRepair(t *testing.T, snapshots bool) {
// already committed, after which the process crashed. In this case we expect the full
// chain to be rolled back to the committed block, but the chain data itself left in
// the database for replaying.
func TestShortSnapSyncedRepair(t *testing.T) { testShortSnapSyncedRepair(t, false) }
func TestShortSnapSyncedRepairWithSnapshots(t *testing.T) { testShortSnapSyncedRepair(t, true) }
func TestShortSnapSyncedRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortSnapSyncedRepair(t, false)
}

func TestShortSnapSyncedRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortSnapSyncedRepair(t, true)
}

func testShortSnapSyncedRepair(t *testing.T, snapshots bool) {
// Chain:
Expand Down Expand Up @@ -128,6 +135,7 @@ func TestShortSnapSyncingRepairWithSnapshots(t *testing.T) {
}

func testShortSnapSyncingRepair(t *testing.T, snapshots bool) {
t.Skip("snap sync not supported in bor")
// Chain:
// G->C1->C2->C3->C4->C5->C6->C7->C8 (HEAD)
//
Expand Down Expand Up @@ -209,9 +217,11 @@ func testShortOldForkedRepair(t *testing.T, snapshots bool) {
// this case we expect the canonical chain to be rolled back to the committed block,
// but the chain data itself left in the database for replaying.
func TestShortOldForkedSnapSyncedRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortOldForkedSnapSyncedRepair(t, false)
}
func TestShortOldForkedSnapSyncedRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortOldForkedSnapSyncedRepair(t, true)
}

Expand Down Expand Up @@ -346,9 +356,11 @@ func testShortNewlyForkedRepair(t *testing.T, snapshots bool) {
// In this case we expect the canonical chain to be rolled back to the committed
// block, but the chain data itself left in the database for replaying.
func TestShortNewlyForkedSnapSyncedRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortNewlyForkedSnapSyncedRepair(t, false)
}
func TestShortNewlyForkedSnapSyncedRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortNewlyForkedSnapSyncedRepair(t, true)
}

Expand Down Expand Up @@ -481,9 +493,11 @@ func testShortReorgedRepair(t *testing.T, snapshots bool) {
// crashed. In this case we expect the canonical chain to be rolled back to the
// committed block, but the chain data itself left in the database for replaying.
func TestShortReorgedSnapSyncedRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortReorgedSnapSyncedRepair(t, false)
}
func TestShortReorgedSnapSyncedRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testShortReorgedSnapSyncedRepair(t, true)
}

Expand Down Expand Up @@ -662,9 +676,11 @@ func testLongDeepRepair(t *testing.T, snapshots bool) {
// which the process crashed. In this case we expect the chain to be rolled back
// to the committed block, with everything afterwards kept as fast sync data.
func TestLongSnapSyncedShallowRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongSnapSyncedShallowRepair(t, false)
}
func TestLongSnapSyncedShallowRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongSnapSyncedShallowRepair(t, true)
}

Expand Down Expand Up @@ -710,8 +726,14 @@ func testLongSnapSyncedShallowRepair(t *testing.T, snapshots bool) {
// sync pivot point - older than the ancient limit - was already committed, after
// which the process crashed. In this case we expect the chain to be rolled back
// to the committed block, with everything afterwards deleted.
func TestLongSnapSyncedDeepRepair(t *testing.T) { testLongSnapSyncedDeepRepair(t, false) }
func TestLongSnapSyncedDeepRepairWithSnapshots(t *testing.T) { testLongSnapSyncedDeepRepair(t, true) }
func TestLongSnapSyncedDeepRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongSnapSyncedDeepRepair(t, false)
}
func TestLongSnapSyncedDeepRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongSnapSyncedDeepRepair(t, true)
}

func testLongSnapSyncedDeepRepair(t *testing.T, snapshots bool) {
// Chain:
Expand Down Expand Up @@ -952,9 +974,11 @@ func testLongOldForkedDeepRepair(t *testing.T, snapshots bool) {
// to be rolled back to the committed block, with everything afterwards kept as
// fast sync data; the side chain completely nuked by the freezer.
func TestLongOldForkedSnapSyncedShallowRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongOldForkedSnapSyncedShallowRepair(t, false)
}
func TestLongOldForkedSnapSyncedShallowRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongOldForkedSnapSyncedShallowRepair(t, true)
}

Expand Down Expand Up @@ -1004,9 +1028,11 @@ func testLongOldForkedSnapSyncedShallowRepair(t *testing.T, snapshots bool) {
// chain to be rolled back to the committed block, with everything afterwards deleted;
// the side chain completely nuked by the freezer.
func TestLongOldForkedSnapSyncedDeepRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongOldForkedSnapSyncedDeepRepair(t, false)
}
func TestLongOldForkedSnapSyncedDeepRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongOldForkedSnapSyncedDeepRepair(t, true)
}

Expand Down Expand Up @@ -1258,9 +1284,11 @@ func testLongNewerForkedDeepRepair(t *testing.T, snapshots bool) {
// to be rolled back to the committed block, with everything afterwards kept as fast
// sync data; the side chain completely nuked by the freezer.
func TestLongNewerForkedSnapSyncedShallowRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongNewerForkedSnapSyncedShallowRepair(t, false)
}
func TestLongNewerForkedSnapSyncedShallowRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongNewerForkedSnapSyncedShallowRepair(t, true)
}

Expand Down Expand Up @@ -1310,9 +1338,11 @@ func testLongNewerForkedSnapSyncedShallowRepair(t *testing.T, snapshots bool) {
// chain to be rolled back to the committed block, with everything afterwards deleted;
// the side chain completely nuked by the freezer.
func TestLongNewerForkedSnapSyncedDeepRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongNewerForkedSnapSyncedDeepRepair(t, false)
}
func TestLongNewerForkedSnapSyncedDeepRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongNewerForkedSnapSyncedDeepRepair(t, true)
}

Expand Down Expand Up @@ -1558,9 +1588,11 @@ func testLongReorgedDeepRepair(t *testing.T, snapshots bool) {
// afterwards kept as fast sync data. The side chain completely nuked by the
// freezer.
func TestLongReorgedSnapSyncedShallowRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongReorgedSnapSyncedShallowRepair(t, false)
}
func TestLongReorgedSnapSyncedShallowRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongReorgedSnapSyncedShallowRepair(t, true)
}

Expand Down Expand Up @@ -1609,9 +1641,11 @@ func testLongReorgedSnapSyncedShallowRepair(t *testing.T, snapshots bool) {
// expect the canonical chains to be rolled back to the committed block, with
// everything afterwards deleted. The side chain completely nuked by the freezer.
func TestLongReorgedSnapSyncedDeepRepair(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongReorgedSnapSyncedDeepRepair(t, false)
}
func TestLongReorgedSnapSyncedDeepRepairWithSnapshots(t *testing.T) {
t.Skip("snap sync not supported in bor")
testLongReorgedSnapSyncedDeepRepair(t, true)
}

Expand Down

0 comments on commit 955eb3d

Please sign in to comment.