X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/522d7fd117285e4e4ce3ea5ec9b5a1722521b681..855a45e6448537c3eed1ad6ec7f1ca9d6caf91fc:/daemon_test.go?ds=inline diff --git a/daemon_test.go b/daemon_test.go index bfb4efb..6a4d98c 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -109,12 +109,12 @@ func TestDaemonLogHasATimeStampOnlyOutsideTheJournal(t *testing.T) { { name: "the journal adds the time itself", journal: "8:12345", - line: `^onechat: the agent is ready\n$`, + line: `^<6>onechat: the agent is ready\n$`, }, { name: "a terminal gets the time in the line", journal: "", - line: `^onechat: \d{4}/\d\d/\d\d \d\d:\d\d:\d\d the agent is ready\n$`, + line: `^\d{4}/\d\d/\d\d \d\d:\d\d:\d\d INFO onechat: the agent is ready\n$`, }, } @@ -124,7 +124,7 @@ func TestDaemonLogHasATimeStampOnlyOutsideTheJournal(t *testing.T) { var out strings.Builder - daemonLogger(&out, "onechat: ").Print("the agent is ready") + daemonLogger(&out, "onechat: ").Info("the agent is ready") require.Regexp(t, tc.line, out.String()) }) }