aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/shim_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-30 00:46:23 +0900
committerOphestra <cat@gensokyo.uk>2025-10-30 01:20:51 +0900
commiteeb9f98e5bd9d4fac6706edb87d06bf757f0fb79 (patch)
tree5417d1c2e18d87be6d5d6a90db7d6f8a4546ba5d /internal/outcome/shim_test.go
parent3f9f331501acc3dc367276501822ef1a260dfd24 (diff)
internal/outcome/shim: move signal constants
The magic numbers hurt readability. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/shim_test.go')
-rw-r--r--internal/outcome/shim_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/outcome/shim_test.go b/internal/outcome/shim_test.go
index d493f709..046c22b6 100644
--- a/internal/outcome/shim_test.go
+++ b/internal/outcome/shim_test.go
@@ -148,9 +148,9 @@ func TestShimEntrypoint(t *testing.T) {
// deferred
call("wKeepAlive", stub.ExpectArgs{}, nil, nil),
}, Tracks: []stub.Expect{{Calls: []stub.Call{
- call("rcRead", stub.ExpectArgs{}, []byte{2}, nil),
+ call("rcRead", stub.ExpectArgs{}, []byte{shimMsgInvalid}, nil),
call("verbose", stub.ExpectArgs{[]any{"sa_sigaction got invalid siginfo"}}, nil, nil),
- call("rcRead", stub.ExpectArgs{}, []byte{3}, nil),
+ call("rcRead", stub.ExpectArgs{}, []byte{shimMsgBadPID}, nil),
call("verbose", stub.ExpectArgs{[]any{"got SIGCONT from unexpected process"}}, nil, nil),
call("rcRead", stub.ExpectArgs{}, nil, nil), // stub terminates this goroutine
}}}}, nil},