mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
Add tests to verify the fix for #117
This commit is contained in:
@ -41,7 +41,7 @@ func (b bashTester) RunInteractiveShell(t testing.TB, script string) string {
|
||||
out, err := b.RunInteractiveShellRelaxed(t, "set -emo pipefail\n"+script)
|
||||
if err != nil {
|
||||
_, filename, line, _ := runtime.Caller(1)
|
||||
t.Fatalf("error when running command at %s:%d: %v", filename, line, err)
|
||||
require.NoError(t, err, fmt.Sprintf("error when running command at %s:%dv", filename, line))
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
Reference in New Issue
Block a user