From a324b1b1764b258ef7a416db0a6ab07af38b82dc Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Fri, 9 Feb 2024 06:37:00 -0500 Subject: [PATCH] fix --- pmtiles/bucket_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmtiles/bucket_test.go b/pmtiles/bucket_test.go index b9e69a1..1d81482 100644 --- a/pmtiles/bucket_test.go +++ b/pmtiles/bucket_test.go @@ -135,7 +135,7 @@ func TestFileBucketReplace(t *testing.T) { assert.Equal(t, []byte{2}, data) // change file, verify etag changes - assert.Nil(t, os.WriteFile(dir+"/archive.pmtiles", []byte{4, 5, 6}, 0666)) + assert.Nil(t, os.WriteFile(dir+"/archive.pmtiles", []byte{4, 5, 6, 7}, 0666)) reader, etag2, err := bucket.NewRangeReaderEtag(context.Background(), "archive.pmtiles", 1, 1, "") assert.Nil(t, err) data, err = io.ReadAll(reader) @@ -151,7 +151,7 @@ func TestFileBucketReplace(t *testing.T) { func TestFileBucketRename(t *testing.T) { dir := t.TempDir() assert.Nil(t, os.WriteFile(dir+"/archive.pmtiles", []byte{1, 2, 3}, 0666)) - assert.Nil(t, os.WriteFile(dir+"/archive2.pmtiles", []byte{4, 5, 6}, 0666)) + assert.Nil(t, os.WriteFile(dir+"/archive2.pmtiles", []byte{4, 5, 6, 7}, 0666)) bucketURL, _, err := NormalizeBucketKey("", dir, "") assert.Nil(t, err)