Skip to content

Commit

Permalink
Changes in test that is failing in pipeline (#20693)
Browse files Browse the repository at this point in the history
  • Loading branch information
siminsavani-msft authored May 2, 2023
1 parent d6bf190 commit e2693bd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions sdk/storage/azblob/service/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -985,13 +985,11 @@ func (s *ServiceUnrecordedTestsSuite) TestServiceSASUploadDownload() {
}.SignWithSharedKey(credential)
_require.Nil(err)

sasURL := svcClient.URL()
if len(sasURL) > 0 && sasURL[len(sasURL)-1:] != "/" {
sasURL += "/"
}
sasURL += "?" + sasQueryParams.Encode()
srcBlobParts, _ := blob.ParseURL(svcClient.URL())
srcBlobParts.SAS = sasQueryParams
srcBlobURLWithSAS := srcBlobParts.String()

azClient, err := azblob.NewClientWithNoCredential(sasURL, nil)
azClient, err := azblob.NewClientWithNoCredential(srcBlobURLWithSAS, nil)
_require.Nil(err)

const blobData = "test data"
Expand Down

0 comments on commit e2693bd

Please sign in to comment.