aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/autoroot_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-12-14 10:22:48 +0900
committerOphestra <cat@gensokyo.uk>2025-12-14 10:22:48 +0900
commitfae910a1ad0a107a2d3cd49011430c857838d2a8 (patch)
treeb69c9b5c6a3c2fb4f943ffdd91934f9e4b953514 /container/autoroot_test.go
parent178c8bc28bc7ff5efc63415796c0c79e649b3cd7 (diff)
container: sync stubbed wait4 loop after notify
This ensures consistent state observed by wait4 loop when running against stub. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/autoroot_test.go')
-rw-r--r--container/autoroot_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/autoroot_test.go b/container/autoroot_test.go
index bf846a25..e4a982f5 100644
--- a/container/autoroot_test.go
+++ b/container/autoroot_test.go
@@ -202,7 +202,7 @@ func TestIsAutoRootBindable(t *testing.T) {
t.Parallel()
var msg message.Msg
if tc.log {
- msg = &kstub{nil, stub.New(t, func(s *stub.Stub[syscallDispatcher]) syscallDispatcher { panic("unreachable") }, stub.Expect{Calls: []stub.Call{
+ msg = &kstub{nil, nil, stub.New(t, func(s *stub.Stub[syscallDispatcher]) syscallDispatcher { panic("unreachable") }, stub.Expect{Calls: []stub.Call{
call("verbose", stub.ExpectArgs{[]any{"got unexpected root entry"}}, nil, nil),
}})}
}