]> git.giacomolli.uk - onechat/blobdiff - telegram_test.go
Reflow comments over the reflow width
[onechat] / telegram_test.go
index 84f41c80c50894cbcd8da6e0ad2f2be3b2f56315..dee692d43d3f2f871c11142903f0764b3f171d44 100644 (file)
@@ -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)