@@ -194,7 +194,7 @@ func TestBlobClientSASKey_FGetObject(t *testing.T) {
194
194
localPath := filepath .Join (tempDir , testFile )
195
195
196
196
// use the shared key client to create a SAS key for the account
197
- sasKey , err := client .ServiceClient . GetSASURL (azblob.AccountSASResourceTypes {Object : true , Container : true },
197
+ sasKey , err := client .GetSASURL (azblob.AccountSASResourceTypes {Object : true , Container : true },
198
198
azblob.AccountSASPermissions {List : true , Read : true },
199
199
time .Now (),
200
200
time .Now ().Add (48 * time .Hour ))
@@ -254,7 +254,7 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
254
254
g .Expect (createBlob (ctx , client , testContainer , testFile , testFileData ))
255
255
256
256
// use the container client to create a container-level SAS key for the account
257
- containerClient , err := client .ServiceClient . NewContainerClient (testContainer )
257
+ containerClient , err := client .NewContainerClient (testContainer )
258
258
g .Expect (err ).ToNot (HaveOccurred ())
259
259
// sasKey
260
260
sasKey , err := containerClient .GetSASURL (azblob.ContainerSASPermissions {Read : true , List : true },
@@ -282,7 +282,7 @@ func TestBlobClientContainerSASKey_BucketExists(t *testing.T) {
282
282
g .Expect (ok ).To (BeTrue ())
283
283
284
284
// Test that this still works if bucket doesn't exist
285
- ok , err = client .BucketExists (ctx , "non-existent" )
285
+ ok , err = sasKeyClient .BucketExists (ctx , "non-existent" )
286
286
g .Expect (err ).ToNot (HaveOccurred ())
287
287
g .Expect (ok ).To (BeFalse ())
288
288
}
0 commit comments