Skip to content

Commit 1c0344e

Browse files
Fix NFS tests (#42894)
1 parent 3ebe9f0 commit 1c0344e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/storage/azure-storage-file-share/tests/test_nfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _setup(self, storage_account_name: str):
5151
pass
5252

5353
def teardown_method(self):
54-
if self.fsc:
54+
if self.is_live and self.fsc:
5555
try:
5656
self.fsc.delete_share(self.share_name)
5757
except:

sdk/storage/azure-storage-file-share/tests/test_nfs_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async def _setup(self, storage_account_name: str):
5858
pass
5959

6060
def teardown_method(self):
61-
if self.fsc:
61+
if self.is_live and self.fsc:
6262
try:
6363
fsc = ShareServiceClient(
6464
account_url=self.account_url,

0 commit comments

Comments
 (0)