mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Attempt to fix inconsintent VT test by preventing a spin
This commit is contained in:
parent
d8221e6152
commit
e5fb81970d
@ -14,6 +14,7 @@ import os
|
||||
import sys
|
||||
import random
|
||||
import subprocess
|
||||
import time
|
||||
|
||||
# Import Salt Testing libs
|
||||
from salttesting import TestCase, skipIf
|
||||
@ -184,6 +185,8 @@ class VTTestCase(TestCase):
|
||||
|
||||
if buffer_o != expected_data:
|
||||
self.assertTrue(term.isalive())
|
||||
# Don't spin
|
||||
time.sleep(0.1)
|
||||
|
||||
# term should be dead now
|
||||
self.assertEqual(buffer_o, expected_data)
|
||||
|
Loading…
Reference in New Issue
Block a user