X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/48d7bce28b18ecef4c52c98821675605464cecb9..12bd9e96f3b3e67290484e3829461e054110db27:/telegram_test.go diff --git a/telegram_test.go b/telegram_test.go index 84f41c8..dee692d 100644 --- a/telegram_test.go +++ b/telegram_test.go @@ -145,7 +145,8 @@ func TestBotShowsOnlyTheStartAndTheEndOfASubagent(t *testing.T) { last := subagentTestLastItem(call) switch { case subagentTestCall(call): - // The report comes after the reply of the turn of the spawn. + // The report comes after the reply of the turn of the + // spawn. require.Eventually(t, func() bool { return slices.Contains(telegram.Sent(), "Started.") }, 10*time.Second, time.Millisecond) @@ -271,8 +272,8 @@ func TestBotTriesAgainAfterFailures(t *testing.T) { require.Contains(t, logs.String(), "<6>receive back after=") require.Contains(t, logs.String(), "<4>send failed retry=1s: 429") - // The bot logs the end of the outage after the send returns, so the line - // can come after the fake server has the message. + // The bot logs the end of the outage after the send returns, so the + // line can come after the fake server has the message. require.Eventually(t, func() bool { return strings.Contains(logs.String(), "<6>send back after=") }, 10*time.Second, time.Millisecond)