]> git.giacomolli.uk - onechat/blobdiff - tools_test.go
Give the root tools to start and message children
[onechat] / tools_test.go
index ed584387a10e5517f3e61009dcc20313bb800c6f..487a5fc54f7c3b5dde38957ba394c7ea3f5fde33 100644 (file)
@@ -93,6 +93,7 @@ func TestShellInterruptKillsTheCommandAndItsChildren(t *testing.T) {
 
        start := time.Now()
        output := box.shell(ctx, "echo started; sleep 30 & sleep 30")
 
        start := time.Now()
        output := box.shell(ctx, "echo started; sleep 30 & sleep 30")
+
        require.Less(t, time.Since(start), 10*time.Second)
        require.Equal(t, "started\n\n[interrupted]", output)
 }
        require.Less(t, time.Since(start), 10*time.Second)
        require.Equal(t, "started\n\n[interrupted]", output)
 }