first.Type(stopCommand)
first.WaitFor(t, "[error] no turn runs")
first.Type(stopCommand + " BlueFox")
- first.WaitFor(t, "[error] no subagent BlueFox runs")
+ first.WaitFor(t, "[error] stop subagent: no subagent BlueFox runs")
require.NotContains(t, second.Output(), "no turn runs")
require.NoError(t, first.Close())
}
{
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$`,
},
}
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())
})
}