Fix ResetStateOnErrorTest.test_success
The new test ResetStateOnErrorTest.test_success relied on a class level variable to do assertions, thus being sensitive to test order. This moves the culprit variable to the instance level. Change-Id: I09705903939530be0983aab830d27d80634fe23f Closes-Bug: #1517359
This commit is contained in:
parent
76afcd3138
commit
a850d922b0
|
@ -2495,7 +2495,8 @@ class ResetStateOnErrorTest(common.HeatTestCase):
|
||||||
action = 'something'
|
action = 'something'
|
||||||
state = COMPLETE
|
state = COMPLETE
|
||||||
|
|
||||||
set_state = mock.MagicMock()
|
def __init__(self):
|
||||||
|
self.set_state = mock.MagicMock()
|
||||||
|
|
||||||
@stack.reset_state_on_error
|
@stack.reset_state_on_error
|
||||||
def raise_exception(self):
|
def raise_exception(self):
|
||||||
|
|
Loading…
Reference in New Issue