diff --git a/manila_tempest_tests/tests/api/admin/test_share_servers.py b/manila_tempest_tests/tests/api/admin/test_share_servers.py index fb803fc800..202e999f95 100644 --- a/manila_tempest_tests/tests/api/admin/test_share_servers.py +++ b/manila_tempest_tests/tests/api/admin/test_share_servers.py @@ -219,7 +219,7 @@ class ShareServersAdminTest(base.BaseSharesAdminTest): neutron_subnet_id=self.share_network['neutron_subnet_id']) # Create server with share - share = self.create_share(share_network_id=new_sn['id']) + self.create_share(share_network_id=new_sn['id']) # List share servers, filtered by share_network_id search_opts = {"share_network": new_sn["id"]} @@ -238,7 +238,6 @@ class ShareServersAdminTest(base.BaseSharesAdminTest): shares = self.shares_client.list_shares_with_detail(params) for s in shares: self.assertEqual(new_sn["id"], s["share_network_id"]) - self.assertTrue(any(share["id"] == s["id"] for s in shares)) # Delete shares, so we will have share server without shares for s in shares: