summaryrefslogtreecommitdiffstats
path: root/tests/functional/glusterd/test_peer_probe.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/glusterd/test_peer_probe.py')
-rw-r--r--tests/functional/glusterd/test_peer_probe.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/functional/glusterd/test_peer_probe.py b/tests/functional/glusterd/test_peer_probe.py
index a3fe5240d..242681343 100644
--- a/tests/functional/glusterd/test_peer_probe.py
+++ b/tests/functional/glusterd/test_peer_probe.py
@@ -226,10 +226,11 @@ class TestPeerProbe(GlusterBaseClass):
g.log.info("Volume %s start with force is success", self.volname)
# Volume delete should fail without stopping volume
- ret = volume_delete(self.servers[2], self.volname)
- self.assertFalse(ret, ("Unexpected Error: Volume deleted "
- "successfully without stopping"
- "volume %s", self.volname))
+ self.assertTrue(
+ volume_delete(self.servers[2], self.volname, xfail=True),
+ "Unexpected Error: Volume deleted "
+ "successfully without stopping volume"
+ )
g.log.info("Expected: volume delete should fail without "
"stopping volume: %s", self.volname)