diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-02 18:53:28 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-05 04:05:39 +0900 |
| commit | b7e991de5bfa81bff474d07142555df51202640a (patch) | |
| tree | 3c49b25eab717cd4a8f5eb74a77dca2b3e8fcf6c /sandbox | |
| parent | 6c1205106d7ac9702464e274502303d2b6df1dc3 (diff) | |
nix: update flake lock
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox')
| -rw-r--r-- | sandbox/container_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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` |
