Skip to content

Commit

Permalink
Ensure the bucket gets created in any test order
Browse files Browse the repository at this point in the history
  • Loading branch information
theandrew168 committed May 11, 2024
1 parent 71d29dc commit 6fb9fde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/pg2s3/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ func TestRestore(t *testing.T) {
t.Fatal(err)
}

err = createBucket(cfg)
if err != nil {
t.Fatal(err)
}

client, err := pg2s3.NewClient(cfg)
if err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -178,6 +183,11 @@ func TestPrune(t *testing.T) {
t.Fatal(err)
}

err = createBucket(cfg)
if err != nil {
t.Fatal(err)
}

client, err := pg2s3.NewClient(cfg)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 6fb9fde

Please sign in to comment.