Builds: design 47 G §568, A-76 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
18 lines
622 B
Go
18 lines
622 B
Go
package build
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
// Design 47 G §568: a key's error opens `transport fault:` only when every lane failed on one.
|
|
func TestKeyErrorOpensTransportFaultOnlyWhenAllLanesDid(t *testing.T) {
|
|
tf := "transport fault: deadline, node-build-go ace, i/o timeout"
|
|
if got := keyError([]string{tf, "mesh-build-node on g14: the step failed: tsc: 2 errors"}); strings.HasPrefix(got, "transport fault:") {
|
|
t.Errorf("beside a real failure the key opens %q", got)
|
|
}
|
|
if got := keyError([]string{tf, tf}); !strings.HasPrefix(got, "transport fault:") {
|
|
t.Errorf("two transport faults open %q", got)
|
|
}
|
|
}
|