Skip to content

Commit

Permalink
TestGCSGetter_GetGenerationFile: use our test bucket (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
azr authored Apr 1, 2021
1 parent 5b1298a commit 7b99c31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions get_gcs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestGCSGetter_GetGenerationFile(t *testing.T) {

// Download
err := g.GetFile(
dst, testURL("https://www.googleapis.com/storage/v1/go-getter-testcase-data/DO_NOT_DELETE/generation_test.txt#1614317688843055"))
dst, testURL("https://www.googleapis.com/storage/v1/go-getter-test/go-getter/versioned.txt#1615905097179533"))
if err != nil {
t.Fatalf("err: %s", err)
}
Expand All @@ -108,13 +108,13 @@ func TestGCSGetter_GetGenerationFile(t *testing.T) {
if err != nil {
t.Fatalf("err: %s", err)
}
if string(content) != "a" {
if string(content) != "a\n" {
t.Fatalf("expected file contents from generation to be `a` but got `%s`", content)
}

// Download
err = g.GetFile(
dst, testURL("https://www.googleapis.com/storage/v1/go-getter-testcase-data/DO_NOT_DELETE/generation_test.txt#1614317705239142"))
dst, testURL("https://www.googleapis.com/storage/v1/go-getter-test/go-getter/versioned.txt#1615905174141919"))
if err != nil {
t.Fatalf("err: %s", err)
}
Expand All @@ -124,7 +124,7 @@ func TestGCSGetter_GetGenerationFile(t *testing.T) {
if err != nil {
t.Fatalf("err: %s", err)
}
if string(content) != "b" {
if string(content) != "b\n" {
t.Fatalf("expected file contents from generation to be `b` but got `%s`", content)
}

Expand Down

0 comments on commit 7b99c31

Please sign in to comment.