From 79e1904378ab68ae921ab2ff8a1518e4ce0b0bc8 Mon Sep 17 00:00:00 2001 From: Yossi Gilad Date: Mon, 28 Aug 2023 14:55:59 -0400 Subject: [PATCH] partitiontest --- agreement/dynamicFilterTimeoutParams_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agreement/dynamicFilterTimeoutParams_test.go b/agreement/dynamicFilterTimeoutParams_test.go index 71d755e674..7d03de7dea 100644 --- a/agreement/dynamicFilterTimeoutParams_test.go +++ b/agreement/dynamicFilterTimeoutParams_test.go @@ -20,11 +20,13 @@ import ( "testing" "time" + "github.com/algorand/go-algorand/test/partitiontest" "github.com/stretchr/testify/require" ) func TestSampleIndexIsValid(t *testing.T) { - // partitiontest.PartitionTest(t) + partitiontest.PartitionTest(t) + require.GreaterOrEqual(t, dynamicFilterCredentialArrivalHistory, 0) require.GreaterOrEqual(t, dynamicFilterTimeoutCredentialArrivalHistoryIdx, 0) if dynamicFilterCredentialArrivalHistory > 0 { @@ -33,6 +35,7 @@ func TestSampleIndexIsValid(t *testing.T) { } func TestLowerBound(t *testing.T) { - // partitiontest.PartitionTest(t) + partitiontest.PartitionTest(t) + require.Less(t, 20*time.Millisecond, dynamicFilterTimeoutLowerBound) }