mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-22 21:41:01 +01:00
Add timestamp to testlog
This commit is contained in:
parent
fbe8e777a4
commit
3ce76d154a
@ -335,7 +335,7 @@ func TestLog(t testing.TB, line string) {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
defer f.Close()
|
||||
_, err = f.WriteString(line + "\n")
|
||||
_, err = f.WriteString(time.Now().UTC().Format(time.RFC3339) + ": " + line + "\n")
|
||||
if err != nil {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user