mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-10 15:16:39 +02:00
Remove time.Sleep that was working around an old already fixed bug
This commit is contained in:
parent
80822c722e
commit
42c6f95eb4
@ -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`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user