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 /helper/cmd_test.go | |
| parent | 6c1205106d7ac9702464e274502303d2b6df1dc3 (diff) | |
nix: update flake lock
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/cmd_test.go')
| -rw-r--r-- | helper/cmd_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/cmd_test.go b/helper/cmd_test.go index a761d829..baad0319 100644 --- a/helper/cmd_test.go +++ b/helper/cmd_test.go @@ -13,7 +13,7 @@ import ( func TestCmd(t *testing.T) { t.Run("start non-existent helper path", func(t *testing.T) { - h := helper.NewDirect(context.Background(), "/proc/nonexistent", argsWt, false, argF, nil, nil) + h := helper.NewDirect(t.Context(), "/proc/nonexistent", argsWt, false, argF, nil, nil) if err := h.Start(); !errors.Is(err, os.ErrNotExist) { t.Errorf("Start: error = %v, wantErr %v", @@ -22,7 +22,7 @@ func TestCmd(t *testing.T) { }) t.Run("valid new helper nil check", func(t *testing.T) { - if got := helper.NewDirect(context.TODO(), "fortify", argsWt, false, argF, nil, nil); got == nil { + if got := helper.NewDirect(t.Context(), "fortify", argsWt, false, argF, nil, nil); got == nil { t.Errorf("NewDirect(%q, %q) got nil", argsWt, "fortify") return |
