diff options
Diffstat (limited to 'cmd/catchupsrv/download_test.go')
-rw-r--r-- | cmd/catchupsrv/download_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/catchupsrv/download_test.go b/cmd/catchupsrv/download_test.go index 1a952cebe..fa65f05fb 100644 --- a/cmd/catchupsrv/download_test.go +++ b/cmd/catchupsrv/download_test.go @@ -17,11 +17,14 @@ package main import ( - "github.com/stretchr/testify/require" "testing" + + "github.com/algorand/go-algorand/test/partitiontest" + "github.com/stretchr/testify/require" ) func TestBlockToPath(t *testing.T) { + partitiontest.PartitionTest(t) require.Equal(t, "00/00/000000", blockToPath(0)) require.Equal(t, "00/00/0000rs", blockToPath(1000)) require.Equal(t, "05/yc/05ycfo", blockToPath(10000500)) @@ -29,6 +32,7 @@ func TestBlockToPath(t *testing.T) { } func TestBlockToFileName(t *testing.T) { + partitiontest.PartitionTest(t) require.Equal(t, "000000", blockToFileName(0)) require.Equal(t, "0000rs", blockToFileName(1000)) require.Equal(t, "05ycfo", blockToFileName(10000500)) @@ -36,6 +40,7 @@ func TestBlockToFileName(t *testing.T) { } func TestBlockToString(t *testing.T) { + partitiontest.PartitionTest(t) require.Equal(t, "0", blockToString(0)) require.Equal(t, "rs", blockToString(1000)) require.Equal(t, "5ycfo", blockToString(10000500)) |