From 42c6f95eb4037f409dda36635c86efc24bc3c6ca Mon Sep 17 00:00:00 2001 From: David Dworken Date: Tue, 20 Sep 2022 21:38:04 -0700 Subject: [PATCH] Remove time.Sleep that was working around an old already fixed bug --- client/client_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 12447fa..a44e2b3 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -1392,11 +1392,10 @@ func testRemoteRedaction(t *testing.T, tester shellTester) { // Record some commands randomCmdUuid := uuid.Must(uuid.NewRandom()).String() randomCmd := fmt.Sprintf(`echo %v-foo -echo %v-bas`, randomCmdUuid, randomCmdUuid) +echo %v-bas +echo foo +ls /tmp`, randomCmdUuid, randomCmdUuid) tester.RunInteractiveShell(t, randomCmd) - time.Sleep(2 * time.Second) // TODO: this sleep is covering up a bug - tester.RunInteractiveShell(t, `echo foo -ls /tmp`) // Check that the previously recorded commands are in hishtory out := tester.RunInteractiveShell(t, `hishtory export | grep -v pipefail`)