summaryrefslogtreecommitdiff
path: root/cmd/algoh/blockstats_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/algoh/blockstats_test.go')
-rw-r--r--cmd/algoh/blockstats_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/algoh/blockstats_test.go b/cmd/algoh/blockstats_test.go
index e96fffe6b..d1b95003b 100644
--- a/cmd/algoh/blockstats_test.go
+++ b/cmd/algoh/blockstats_test.go
@@ -22,6 +22,7 @@ import (
"github.com/algorand/go-algorand/daemon/algod/api/spec/v1"
"github.com/algorand/go-algorand/logging/telemetryspec"
+ "github.com/algorand/go-algorand/test/partitiontest"
"github.com/stretchr/testify/require"
)
@@ -42,6 +43,7 @@ func (mes *MockEventSender) EventWithDetails(category telemetryspec.Category, id
}
func TestConsecutiveBlocks(t *testing.T) {
+ partitiontest.PartitionTest(t)
sender := MockEventSender{}
bs := blockstats{log: &sender}
@@ -57,6 +59,7 @@ func TestConsecutiveBlocks(t *testing.T) {
}
func TestAgreementTime(t *testing.T) {
+ partitiontest.PartitionTest(t)
sleepTime := 50 * time.Millisecond
testAttempts := 0
const maxTestAttempts = 10