MCPcopy Index your code
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
120func TestBashTimeout(t *testing.T) {
121 out := Bash(context.Background(), "sleep 2", 100*time.Millisecond)
122 if !strings.Contains(out, "timeout") {
123 t.Fatalf("expected timeout marker: %q", out)
124 }
125}
126
127func TestBashCustomTimeoutHonored(t *testing.T) {
128 // timeout_seconds of 1 truncates the 3s sleep, and flows through to Bash.

Callers

nothing calls this directly

Calls 1

BashFunction · 0.85

Tested by

no test coverage detected