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 --- helper/cmd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helper/cmd_test.go') 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 -- cgit v1.3.1