Skip to content

Commit

Permalink
Sets Origin.Port to fix "port already in use" error that occurs occas…
Browse files Browse the repository at this point in the history
…ionally in S3 Origin tests
  • Loading branch information
Emma Turetsky committed Apr 3, 2024
1 parent 2e23a87 commit 83017e5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions xrootd/origin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,18 +341,4 @@ func TestS3OriginConfig(t *testing.T) {
require.Equal(t, fmt.Sprintf("/%s/%s/%s", serviceName, regionName, bucketName), param.Origin_FederationPrefix.GetString())
cancel()
mockupCancel()

// Test virtual-style hosting
viper.Set("Origin.S3UrlStyle", "virtual")
ctx, cancel, egrp = test_utils.TestContext(context.Background(), t)
mockupCancel = originMockup(ctx, egrp, t)
defer cancel()
defer mockupCancel()

err = server_utils.WaitUntilWorking(ctx, "GET", originEndpoint, "xrootd", 403)
if err != nil {
t.Fatalf("Unsucessful test: Server encountered an error: %v", err)
}

require.Equal(t, fmt.Sprintf("/%s/%s/%s", serviceName, regionName, bucketName), param.Origin_FederationPrefix.GetString())
}

0 comments on commit 83017e5

Please sign in to comment.