From a92f0f7c8905b0d4595cc3cb101a2acdcdc139f5 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 17 Sep 2022 10:50:04 -0700 Subject: [PATCH] increase recording leeway --- pkg/gui/test_mode.go | 2 +- pkg/integration/deprecated/go_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/gui/test_mode.go b/pkg/gui/test_mode.go index cd3bd83ba..7d1a5eb5a 100644 --- a/pkg/gui/test_mode.go +++ b/pkg/gui/test_mode.go @@ -42,7 +42,7 @@ func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) { if Replaying() { gui.g.RecordingConfig = gocui.RecordingConfig{ Speed: GetRecordingSpeed(), - Leeway: 100, + Leeway: 1000, } var err error diff --git a/pkg/integration/deprecated/go_test.go b/pkg/integration/deprecated/go_test.go index 9b8c92a3b..af7f6a8eb 100644 --- a/pkg/integration/deprecated/go_test.go +++ b/pkg/integration/deprecated/go_test.go @@ -106,7 +106,7 @@ func runCmdHeadless(cmd *exec.Cmd) error { // these rows and columns are ignored because internally we use tcell's // simulation screen. However we still need the pty for the sake of // running other commands in a pty. - f, err := pty.StartWithSize(cmd, &pty.Winsize{Rows: 300, Cols: 300}) + f, err := pty.StartWithSize(cmd, &pty.Winsize{Rows: 100, Cols: 100}) if err != nil { return err }