Skip to content

Commit 6fa1106

Browse files
committed
Adjust test to reflect reality
The expected behavior in the test is inconsistent with other tests. Adjust the test so that it passes, rather than being an expected failure.
1 parent 56fdd7d commit 6fa1106

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qrexec/tests/policy_parser.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,6 @@ def test_055_eval_resolve_dispvm_from_default_target(self):
15791579
self.assertEqual(resolution.default_target, "@dispvm:default-dvm")
15801580
self.assertEqual(resolution.request.target, "test-vm1")
15811581

1582-
@unittest.expectedFailure
15831582
def test_060_eval_to_dom0(self):
15841583
policy = parser.StringPolicy(
15851584
policy="""\
@@ -1589,8 +1588,8 @@ def test_060_eval_to_dom0(self):
15891588

15901589
self.assertIsInstance(resolution, parser.AllowResolution)
15911590
self.assertEqual(resolution.rule, policy.rules[0])
1592-
self.assertEqual(resolution.target, "@adminvm")
1593-
self.assertEqual(resolution.request.target, "dom0")
1591+
self.assertEqual(resolution.target, "dom0")
1592+
self.assertEqual(resolution.request.target, "@adminvm")
15941593

15951594
def test_061_eval_to_dom0_keyword(self):
15961595
policy = parser.StringPolicy(

0 commit comments

Comments
 (0)