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 /dbus | |
| parent | 6c1205106d7ac9702464e274502303d2b6df1dc3 (diff) | |
nix: update flake lock
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'dbus')
| -rw-r--r-- | dbus/dbus_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/dbus_test.go b/dbus/dbus_test.go index 206692be..d1a97754 100644 --- a/dbus/dbus_test.go +++ b/dbus/dbus_test.go @@ -90,9 +90,9 @@ func testProxyFinaliseStartWaitCloseString(t *testing.T, useSandbox bool) { t.Run("invalid start", func(t *testing.T) { if !useSandbox { - p = dbus.NewDirect(context.TODO(), nil, nil) + p = dbus.NewDirect(t.Context(), nil, nil) } else { - p = dbus.New(context.TODO(), nil, nil) + p = dbus.New(t.Context(), nil, nil) } if err := p.Start(); !errors.Is(err, syscall.ENOTRECOVERABLE) { @@ -120,7 +120,7 @@ func testProxyFinaliseStartWaitCloseString(t *testing.T, useSandbox bool) { } }) - ctx, cancel := context.WithTimeout(context.TODO(), 5*time.Second) + ctx, cancel := context.WithTimeout(t.Context(), 5*time.Second) defer cancel() if !useSandbox { p = dbus.NewDirect(ctx, final, nil) |
