Skip to content

Commit 88e740c

Browse files
committed
Adjust unit tests to give more time, set height less for set_height on panes
1 parent dba5429 commit 88e740c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tmuxp/testsuite/test_pane.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ def test_set_height(self):
3737
pane1 = window.attached_pane()
3838
pane1_height = pane1['pane_height']
3939

40-
pane1.set_height(12)
40+
pane1.set_height(6)
4141
self.assertNotEqual(pane1['pane_height'], pane1_height)
42-
self.assertEqual(int(pane1['pane_height']), 12)
42+
self.assertEqual(int(pane1['pane_height']), 6)
4343

4444
def test_set_width(self):
4545
window = self.session.new_window(window_name='test_set_width')

tmuxp/testsuite/test_workspacebuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def test_automatic_rename_option(self):
261261
w = s.attached_window()
262262
if w['window_name'] == 'man':
263263
break
264-
time.sleep(.1)
264+
time.sleep(.2)
265265

266266
self.assertEqual(w.get('window_name'), 'man')
267267

@@ -270,7 +270,7 @@ def test_automatic_rename_option(self):
270270
w = s.attached_window()
271271
if w['window_name'] != 'man':
272272
break
273-
time.sleep(.1)
273+
time.sleep(.2)
274274

275275
self.assertNotEqual(w.get('window_name'), 'man')
276276

0 commit comments

Comments
 (0)