summaryrefslogtreecommitdiff
path: root/test/e2e-go/features/catchup/catchpointCatchup_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/e2e-go/features/catchup/catchpointCatchup_test.go')
-rw-r--r--test/e2e-go/features/catchup/catchpointCatchup_test.go21
1 files changed, 15 insertions, 6 deletions
diff --git a/test/e2e-go/features/catchup/catchpointCatchup_test.go b/test/e2e-go/features/catchup/catchpointCatchup_test.go
index eb8345130..7d731e9e9 100644
--- a/test/e2e-go/features/catchup/catchpointCatchup_test.go
+++ b/test/e2e-go/features/catchup/catchpointCatchup_test.go
@@ -1,4 +1,4 @@
-// Copyright (C) 2019-2023 Algorand, Inc.
+// Copyright (C) 2019-2024 Algorand, Inc.
// This file is part of go-algorand
//
// go-algorand is free software: you can redistribute it and/or modify
@@ -126,6 +126,10 @@ func configureCatchpointGeneration(a *require.Assertions, nodeController *nodeco
a.NoError(err)
cfg.CatchpointInterval = basicTestCatchpointInterval
+ cfg.Archival = false // make it explicit non-archival
+ cfg.MaxBlockHistoryLookback = 20000 // to save blocks beyond MaxTxnLife=13
+ cfg.CatchpointTracking = 2 // to enable catchpoints on non-archival nodes
+ cfg.CatchpointFileHistoryLength = 30 // to store more than 2 default catchpoints
cfg.MaxAcctLookback = 2
err = cfg.SaveToDisk(nodeController.GetDataDir())
a.NoError(err)
@@ -383,7 +387,6 @@ func TestCatchpointLabelGeneration(t *testing.T) {
expectLabels bool
}{
{4, true, true},
- {4, false, true},
{0, true, false},
}
@@ -506,8 +509,11 @@ func TestNodeTxHandlerRestart(t *testing.T) {
a.NoError(err)
const catchpointInterval = 16
cfg.CatchpointInterval = catchpointInterval
- cfg.CatchpointTracking = 2
- cfg.TxSyncIntervalSeconds = 200000 // disable txSync
+ cfg.Archival = false // make it explicit non-archival
+ cfg.MaxBlockHistoryLookback = 20000 // to save blocks beyond MaxTxnLife=13
+ cfg.CatchpointTracking = 2 // to enable catchpoints on non-archival nodes
+ cfg.CatchpointFileHistoryLength = 30 // to store more than 2 default catchpoints
+ cfg.TxSyncIntervalSeconds = 200000 // disable txSync
cfg.SaveToDisk(relayNode.GetDataDir())
fixture.Start()
@@ -612,8 +618,11 @@ func TestReadyEndpoint(t *testing.T) {
a.NoError(err)
const catchpointInterval = 16
cfg.CatchpointInterval = catchpointInterval
- cfg.CatchpointTracking = 2
- cfg.TxSyncIntervalSeconds = 200000 // disable txSync
+ cfg.Archival = false // make it explicit non-archival
+ cfg.MaxBlockHistoryLookback = 20000 // to save blocks beyond MaxTxnLife=13
+ cfg.CatchpointTracking = 2 // to enable catchpoints on non-archival nodes
+ cfg.CatchpointFileHistoryLength = 30 // to store more than 2 default catchpoints
+ cfg.TxSyncIntervalSeconds = 200000 // disable txSync
cfg.SaveToDisk(relayNode.GetDataDir())
fixture.Start()