Skip to content

Commit

Permalink
Update GCS object versions
Browse files Browse the repository at this point in the history
  • Loading branch information
dpowley committed Sep 26, 2022
1 parent b279273 commit 98db99c
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 @@ -72,9 +72,9 @@ func TestGCSGetter_GetGenerationFile(t *testing.T) {
dst := tempTestFile(t)
defer os.RemoveAll(filepath.Dir(dst))

// Download
// Download Previous Version
err := g.GetFile(
dst, testURL("https://www.googleapis.com/storage/v1/hc-go-getter-test/go-getter/versioned.txt#1615905097179533"))
dst, testURL("https://www.googleapis.com/storage/v1/hc-go-getter-test/go-getter/versioned.txt#1664219586926715"))
if err != nil {
t.Fatalf("err: %s", err)
}
Expand All @@ -88,9 +88,9 @@ func TestGCSGetter_GetGenerationFile(t *testing.T) {
t.Fatalf("expected file contents from generation to be `a` but got `%s`", content)
}

// Download
// Download Current Version
err = g.GetFile(
dst, testURL("https://www.googleapis.com/storage/v1/hc-go-getter-test/go-getter/versioned.txt#1615905174141919"))
dst, testURL("https://www.googleapis.com/storage/v1/hc-go-getter-test/go-getter/versioned.txt#1664226903901093"))
if err != nil {
t.Fatalf("err: %s", err)
}
Expand Down

0 comments on commit 98db99c

Please sign in to comment.