From 4305ef1fe175e76a0aee6d089c442397bfefb963 Mon Sep 17 00:00:00 2001 From: Kirk MacTavish Date: Mon, 16 May 2016 14:11:12 -0400 Subject: [PATCH] patching suppress history test timing --- tmuxp/testsuite/workspacebuilder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tmuxp/testsuite/workspacebuilder.py b/tmuxp/testsuite/workspacebuilder.py index 79b53299edc..85022a9083e 100644 --- a/tmuxp/testsuite/workspacebuilder.py +++ b/tmuxp/testsuite/workspacebuilder.py @@ -238,7 +238,7 @@ def test_suppress_history(self): builder = WorkspaceBuilder(sconf=sconfig) builder.build(session=self.session) - time.sleep(0.2) # give .bashrc, etc. time to load + time.sleep(0.3) # give .bashrc, etc. time to load s.server._update_windows() for w in s.windows: @@ -250,7 +250,7 @@ def test_suppress_history(self): # Print the last-in-history command in the pane self.session.cmd('send-keys', ' fc -ln -1') self.session.cmd('send-keys', 'Enter') - time.sleep(0.01) # give fc time to run + time.sleep(0.1) # give fc time to run # Get the contents of the pane self.session.cmd('capture-pane') @@ -269,7 +269,7 @@ def test_suppress_history(self): self.assertNotEqual(sent_cmd, history_cmd) # Something went wrong else: - self.assertTrue(False) + self.fail("Unknown sent command: [%s]" % sent_cmd) class WindowOptions(TmuxTestCase):