]> git.giacomolli.uk - onechat/blobdiff - telegram_test.go
Stop a subagent with /stop NAME
[onechat] / telegram_test.go
index 81e6e18f2299917dc03797d1d757e1757ce5d5f7..c1f123036a4d8806d5435d9583c0d4b46f5e85f7 100644 (file)
@@ -127,6 +127,13 @@ func TestStopFromTelegramInterruptsTheTurn(t *testing.T) {
        })
 
        telegramWaitForSent(t, telegram, "Error: interrupted", "No turn runs.")
+
+       telegram.Add(TelegramUpdate{
+               UpdateID: 4,
+               Message:  telegramOwnerMessage(stopCommand + " BlueFox"),
+       })
+
+       telegramWaitForSent(t, telegram, "No turn runs.", "No subagent BlueFox runs.")
 }
 
 func TestBotStartsAtTheStoredOffset(t *testing.T) {