Skip to content

Commit 21d373f

Browse files
Typo
1 parent c53b1df commit 21d373f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def test_list_shares_leased_share(self, **kwargs):
814814

815815
# Act
816816
lease = share.acquire_lease(lease_id="00000000-1111-2222-3333-444444444444")
817-
resp = [s for s in list(self.fsc.list_shares()) if s.name == share.name]
817+
resp = [s for s in list(self.fsc.list_shares()) if s.name == share.share_name]
818818

819819
# Assert
820820
assert resp is not None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ async def test_list_shares_leased_share(self, **kwargs):
816816
lease = await share.acquire_lease(lease_id="00000000-1111-2222-3333-444444444444")
817817
resp = []
818818
async for s in self.fsc.list_shares():
819-
if s.name == share.name:
819+
if s.name == share.share_name:
820820
resp.append(s)
821821

822822
# Assert

0 commit comments

Comments
 (0)