From e5fb81970de54f6b39b306a9cc365611996fc57c Mon Sep 17 00:00:00 2001 From: Mike Place Date: Mon, 29 Dec 2014 10:26:48 -0700 Subject: [PATCH] Attempt to fix inconsintent VT test by preventing a spin --- tests/unit/utils/vt_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/utils/vt_test.py b/tests/unit/utils/vt_test.py index b424314199..f5cd86ceaa 100644 --- a/tests/unit/utils/vt_test.py +++ b/tests/unit/utils/vt_test.py @@ -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)