Skip to content

Commit 4305ef1

Browse files
committed
patching suppress history test timing
1 parent b409368 commit 4305ef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tmuxp/testsuite/workspacebuilder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_suppress_history(self):
238238

239239
builder = WorkspaceBuilder(sconf=sconfig)
240240
builder.build(session=self.session)
241-
time.sleep(0.2) # give .bashrc, etc. time to load
241+
time.sleep(0.3) # give .bashrc, etc. time to load
242242

243243
s.server._update_windows()
244244
for w in s.windows:
@@ -250,7 +250,7 @@ def test_suppress_history(self):
250250
# Print the last-in-history command in the pane
251251
self.session.cmd('send-keys', ' fc -ln -1')
252252
self.session.cmd('send-keys', 'Enter')
253-
time.sleep(0.01) # give fc time to run
253+
time.sleep(0.1) # give fc time to run
254254

255255
# Get the contents of the pane
256256
self.session.cmd('capture-pane')
@@ -269,7 +269,7 @@ def test_suppress_history(self):
269269
self.assertNotEqual(sent_cmd, history_cmd)
270270
# Something went wrong
271271
else:
272-
self.assertTrue(False)
272+
self.fail("Unknown sent command: [%s]" % sent_cmd)
273273

274274

275275
class WindowOptions(TmuxTestCase):

0 commit comments

Comments
 (0)