Skip to content

Commit

Permalink
refactor test function name
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Jul 17, 2024
1 parent 9eb5030 commit df51fc3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/serve/s3/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ func TestS3(t *testing.T) {

fstest.Initialise()
t.Run("Normal", func(t *testing.T) {
RunS3UnitTests(t, "s3", start, false)
runServeTests(t, "s3", start, false)
})
t.Run("AuthProxy", func(t *testing.T) {
RunS3UnitTests(t, "s3", start, true)
runServeTests(t, "s3", start, true)
})
}

func RunS3UnitTests(t *testing.T, name string, start servetest.StartFn, useProxy bool) {
func runServeTests(t *testing.T, name string, start servetest.StartFn, useProxy bool) {
ci := fs.GetConfig(context.Background())
ci.DisableFeatures = append(ci.DisableFeatures, "Metadata")

Expand Down Expand Up @@ -137,7 +137,6 @@ func RunS3UnitTests(t *testing.T, name string, start servetest.StartFn, useProxy
}
remoteName := "serve" + name + ":"
args = append(args, "-remote", remoteName)
args = append(args, "-run", "^TestIntegration$")
args = append(args, "-list-retries", fmt.Sprint(*fstest.ListRetries))
cmd := exec.Command("go", args...)

Expand Down

0 comments on commit df51fc3

Please sign in to comment.