From 214acf56c53ca46634c4ad736a51f1f874bf1069 Mon Sep 17 00:00:00 2001 From: nvbn Date: Thu, 30 Jul 2015 20:04:40 +0300 Subject: [PATCH] #298 Wait before checking that history changed --- tests/functional/plots.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/functional/plots.py b/tests/functional/plots.py index 611742f2..1fb63904 100644 --- a/tests/functional/plots.py +++ b/tests/functional/plots.py @@ -1,3 +1,4 @@ +from time import sleep from pexpect import TIMEOUT @@ -25,12 +26,14 @@ def with_confirmation(proc): def history_changed(proc, to): """Ensures that history changed.""" + sleep(2) proc.send('\033[A') assert proc.expect([TIMEOUT, to]) def history_not_changed(proc): """Ensures that history not changed.""" + sleep(2) proc.send('\033[A') assert proc.expect([TIMEOUT, u'fuck'])