From 039d51906e2eb1547674d332e5e6bbaeac081ce1 Mon Sep 17 00:00:00 2001 From: Euan Kemp Date: Mon, 11 Jun 2018 15:12:07 -0700 Subject: [PATCH] pkg/blobserver/s3: fix tests The storage test for s3 have been broken since https://perkeep-review.googlesource.com/c/perkeep/+/15846. The introduction of a proxycache made a type assertion in the test panic, and thus the tests reliably failed when run. The simplest fix for now is to get them back to their previous passing state by disabling the proxycache for tests. Change-Id: Ib75b5eabd36decebd8785ba50d4b979a7a0db653 --- pkg/blobserver/s3/s3_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/blobserver/s3/s3_test.go b/pkg/blobserver/s3/s3_test.go index 3968d864d..9c5067f41 100644 --- a/pkg/blobserver/s3/s3_test.go +++ b/pkg/blobserver/s3/s3_test.go @@ -101,6 +101,7 @@ func testStorage(t *testing.T, bucketDir string) { "aws_access_key": *key, "aws_secret_access_key": *secret, "bucket": bucketWithDir, + "cacheSize": float64(0), }) if err != nil { t.Fatalf("newFromConfig error: %v", err)