MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestBashTimeout

Function TestBashTimeout

internal/tools/bash_test.go:120–125  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

118 }
119}
120
121func TestBashTimeout(t *testing.T) {
122 out := Bash(context.Background(), "sleep 2", 100*time.Millisecond)
123 if !strings.Contains(out, "timeout") {
124 t.Fatalf("expected timeout marker: %q", out)
125 }
126}
127
128func TestBashCustomTimeoutHonored(t *testing.T) {

Callers

nothing calls this directly

Calls 1

BashFunction · 0.85

Tested by

no test coverage detected