Skip to content

Commit

Permalink
Fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Dec 6, 2023
1 parent 2e02cfc commit 4f9cdad
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions xrootd/origin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/pelicanplatform/pelican/daemon"
"github.com/pelicanplatform/pelican/origin_ui"
"github.com/pelicanplatform/pelican/param"
"github.com/pelicanplatform/pelican/utils"

"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
Expand Down Expand Up @@ -138,12 +139,10 @@ func TestOrigin(t *testing.T) {
}

if testSuccess {
url, err := origin_ui.UploadTestfile()
require.NoError(t, err)
err = origin_ui.DownloadTestfile(url)
require.NoError(t, err)
err = origin_ui.DeleteTestfile(url)
fileTests := utils.TestFileTransferImpl{}
ok, err := fileTests.RunTests(param.Origin_Url.GetString(), param.Origin_Url.GetString(), utils.OriginSelfFileTest)
require.NoError(t, err)
require.True(t, ok)
} else {
t.Fatalf("Unsucessful test: timeout when trying to send request to xrootd")
}
Expand Down

0 comments on commit 4f9cdad

Please sign in to comment.