Skip to content

Commit

Permalink
Fix compile issues on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Apr 4, 2024
1 parent 4cfefc1 commit c71fe73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/fed_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestRecursiveUploadsAndDownloads(t *testing.T) {
export.FederationPrefix, "osdf_osdf", dirName)

// Upload the file with PUT
transferDetailsUpload, err := client.DoPut(te, tempDir, uploadURL, true, client.WithTokenLocation(tempToken.Name()))
transferDetailsUpload, err := client.DoPut(fed.Ctx, tempDir, uploadURL, true, client.WithTokenLocation(tempToken.Name()))
assert.NoError(t, err)
if err == nil && len(transferDetailsUpload) == 3 {
countBytes17 := 0
Expand Down Expand Up @@ -300,7 +300,7 @@ func TestRecursiveUploadsAndDownloads(t *testing.T) {
uploadURL := fmt.Sprintf("pelican://%s:%s%s/%s/%s", param.Server_Hostname.GetString(), strconv.Itoa(param.Server_WebPort.GetInt()),
export.FederationPrefix, "osdf_osdf", dirName)
// Upload the file with PUT
transferDetailsUpload, err := client.DoPut(te, tempDir, uploadURL, true, client.WithTokenLocation(tempToken.Name()))
transferDetailsUpload, err := client.DoPut(fed.Ctx, tempDir, uploadURL, true, client.WithTokenLocation(tempToken.Name()))
assert.NoError(t, err)
if err == nil && len(transferDetailsUpload) == 3 {
countBytes17 := 0
Expand Down Expand Up @@ -334,9 +334,9 @@ func TestRecursiveUploadsAndDownloads(t *testing.T) {
// Download the files we just uploaded
var transferDetailsDownload []client.TransferResults
if export.Capabilities.PublicReads {
transferDetailsDownload, err = client.DoGet(te, uploadURL, t.TempDir(), true)
transferDetailsDownload, err = client.DoGet(fed.Ctx, uploadURL, t.TempDir(), true)
} else {
transferDetailsDownload, err = client.DoGet(te, uploadURL, t.TempDir(), true, client.WithTokenLocation(tempToken.Name()))
transferDetailsDownload, err = client.DoGet(fed.Ctx, uploadURL, t.TempDir(), true, client.WithTokenLocation(tempToken.Name()))
}
assert.NoError(t, err)
if err == nil && len(transferDetailsDownload) == 3 {
Expand Down

0 comments on commit c71fe73

Please sign in to comment.