From eeb9f98e5bd9d4fac6706edb87d06bf757f0fb79 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 30 Oct 2025 00:46:23 +0900 Subject: internal/outcome/shim: move signal constants The magic numbers hurt readability. Signed-off-by: Ophestra --- internal/outcome/shim_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/outcome/shim_test.go') 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}, -- cgit v1.3.1