From b7e991de5bfa81bff474d07142555df51202640a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 2 Jun 2025 18:53:28 +0900 Subject: nix: update flake lock Signed-off-by: Ophestra --- sandbox/container_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sandbox') diff --git a/sandbox/container_test.go b/sandbox/container_test.go index 0ba75da5..545ffa83 100644 --- a/sandbox/container_test.go +++ b/sandbox/container_test.go @@ -70,7 +70,7 @@ func TestContainer(t *testing.T) { for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + ctx, cancel := context.WithTimeout(t.Context(), 5*time.Second) defer cancel() container := sandbox.New(ctx, "/usr/bin/sandbox.test", "-test.v", @@ -162,7 +162,7 @@ func e(root, target, vfsOptstr, fsType, source, fsOptstr string) *vfs.MountInfoE } func TestContainerString(t *testing.T) { - container := sandbox.New(context.TODO(), "ldd", "/usr/bin/env") + container := sandbox.New(t.Context(), "ldd", "/usr/bin/env") container.Flags |= sandbox.FAllowDevel container.Seccomp |= seccomp.FilterMultiarch want := `argv: ["ldd" "/usr/bin/env"], flags: 0x2, seccomp: 0x2e` -- cgit v1.3.1