Skip to content

Commit

Permalink
Fix a regression test, size is not updated until end of event loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed May 21, 2020
1 parent 5ac5cd9 commit 98a18d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regress/control-client-size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ sleep 1
cat <<EOF|$TMUX -C a >$TMP
ls -F':#{window_width} #{window_height}'
refresh -C 100,50
ls -F':#{window_width} #{window_height}'
EOF
grep ^: $TMP >$OUT
$TMUX ls -F':#{window_width} #{window_height}' >>$OUT
printf ":80 24\n:100 50\n"|cmp -s $OUT - || exit 1
$TMUX kill-server 2>/dev/null
Expand All @@ -31,18 +31,18 @@ sleep 1
cat <<EOF|$TMUX -f/dev/null -C a >$TMP
ls -F':#{window_width} #{window_height}'
refresh -C 80,24
ls -F':#{window_width} #{window_height}'
EOF
grep ^: $TMP >$OUT
$TMUX ls -F':#{window_width} #{window_height}' >>$OUT
printf ":80 24\n:80 24\n"|cmp -s $OUT - || exit 1
$TMUX kill-server 2>/dev/null
cat <<EOF|$TMUX -f/dev/null -C new -x 100 -y 50 >$TMP
ls -F':#{window_width} #{window_height}'
refresh -C 80,24
ls -F':#{window_width} #{window_height}'
EOF
grep ^: $TMP >$OUT
$TMUX ls -F':#{window_width} #{window_height}' >>$OUT
printf ":100 50\n:80 24\n"|cmp -s $OUT - || exit 1
$TMUX kill-server 2>/dev/null
Expand Down

0 comments on commit 98a18d0

Please sign in to comment.