From efb42d8da5324cf179dcda6bda02dc494c79a4c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giedrius=20Statkevi=C4=8Dius?= Date: Tue, 18 Aug 2020 23:58:47 +0300 Subject: [PATCH] block: fix the test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Giedrius Statkevičius --- pkg/block/block_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/block/block_test.go b/pkg/block/block_test.go index 710de679940..c3a3b3cf5cb 100644 --- a/pkg/block/block_test.go +++ b/pkg/block/block_test.go @@ -183,7 +183,7 @@ func TestUpload(t *testing.T) { // Full block. testutil.Ok(t, Upload(ctx, log.NewNopLogger(), bkt, path.Join(tmpDir, "test", b1.String()))) testutil.Equals(t, 4, len(bkt.Objects())) - testutil.Equals(t, 3751, len(bkt.Objects()[path.Join(b1.String(), ChunksDirname, "000001")])) + testutil.Equals(t, 3753, len(bkt.Objects()[path.Join(b1.String(), ChunksDirname, "000001")])) testutil.Equals(t, 401, len(bkt.Objects()[path.Join(b1.String(), IndexFilename)])) testutil.Equals(t, 383, len(bkt.Objects()[path.Join(b1.String(), MetaFilename)])) } @@ -191,7 +191,7 @@ func TestUpload(t *testing.T) { // Test Upload is idempotent. testutil.Ok(t, Upload(ctx, log.NewNopLogger(), bkt, path.Join(tmpDir, "test", b1.String()))) testutil.Equals(t, 4, len(bkt.Objects())) - testutil.Equals(t, 3751, len(bkt.Objects()[path.Join(b1.String(), ChunksDirname, "000001")])) + testutil.Equals(t, 3753, len(bkt.Objects()[path.Join(b1.String(), ChunksDirname, "000001")])) testutil.Equals(t, 401, len(bkt.Objects()[path.Join(b1.String(), IndexFilename)])) testutil.Equals(t, 383, len(bkt.Objects()[path.Join(b1.String(), MetaFilename)])) }