mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-13 01:38:33 +03:00
Improve regression test readability
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -1760,6 +1760,7 @@ class SingTUNStartupTest(unittest.TestCase):
|
||||
operation = manager.startAsync(
|
||||
_Configuration(), 'Global', deepcopy=False
|
||||
)
|
||||
|
||||
operation.failed.connect(
|
||||
lambda _operation, message, details: failures.append(
|
||||
(message, details)
|
||||
@@ -1778,11 +1779,13 @@ class SingTUNStartupTest(unittest.TestCase):
|
||||
self.assertEqual(
|
||||
failures, [('', 'Unsupported sing-tun stack')]
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
router.state, RuntimeLeaseState.Released
|
||||
)
|
||||
self.assertFalse(primary.isRunning())
|
||||
self.assertEqual(manager.runtimes, [])
|
||||
|
||||
hostPlan.assert_not_called()
|
||||
nativeRuntime.assert_not_called()
|
||||
finally:
|
||||
|
||||
@@ -114,6 +114,7 @@ for _ in range(30):
|
||||
window = self.createWindow()
|
||||
transition = self.createTransition([window], duration=100000)
|
||||
finished = QSignalSpy(transition.transitionFinished)
|
||||
|
||||
transition.apply(lambda: None)
|
||||
|
||||
window.resize(330, 190)
|
||||
@@ -150,6 +151,7 @@ for _ in range(30):
|
||||
)
|
||||
finished = QSignalSpy(transition.transitionFinished)
|
||||
timer = transition._completionTimer
|
||||
|
||||
transition.apply(lambda: None)
|
||||
|
||||
window.resize(330, 190)
|
||||
|
||||
Reference in New Issue
Block a user