Skip to content

Commit 2d40ac9

Browse files
sagor999roboquat
authored andcommitted
[content-service] fix gcloud test
1 parent 2a4dd8a commit 2d40ac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/content-service/pkg/storage/gcloud_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"io/ioutil"
1515
"net/http"
1616
"os"
17+
"strings"
1718
"testing"
1819
"time"
1920

@@ -58,7 +59,7 @@ func TestObjectAccessToNonExistentObj(t *testing.T) {
5859

5960
var mappings []archive.IDMapping
6061
found, err := storage.Download(context.Background(), "/tmp", "foo", mappings)
61-
if err != nil {
62+
if err != nil && !strings.Contains(err.Error(), "object doesn't exist") {
6263
t.Errorf("%+v", err)
6364
}
6465
if found {

0 commit comments

Comments
 (0)