From fae910a1ad0a107a2d3cd49011430c857838d2a8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 14 Dec 2025 10:22:48 +0900 Subject: container: sync stubbed wait4 loop after notify This ensures consistent state observed by wait4 loop when running against stub. Signed-off-by: Ophestra --- container/autoroot_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'container/autoroot_test.go') 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), }})} } -- cgit v1.3.1