aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vminfo/linux_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-07-04 18:50:36 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-08 07:01:24 +0000
commit5a7005591465dd7ea34834918299fac3bfe508f6 (patch)
tree8376a98c3f3361b6e934cfcb88e3624adb5abd1d /pkg/vminfo/linux_test.go
parentb1cb3770ed1055dd3ec9a74ba287139fde14789e (diff)
pkg/vminfo: accept context.Context
The object enables a graceful shutdown of machine checks.
Diffstat (limited to 'pkg/vminfo/linux_test.go')
-rw-r--r--pkg/vminfo/linux_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/vminfo/linux_test.go b/pkg/vminfo/linux_test.go
index 8f956e5cf..c026eb478 100644
--- a/pkg/vminfo/linux_test.go
+++ b/pkg/vminfo/linux_test.go
@@ -6,6 +6,7 @@ package vminfo
import (
"bufio"
"bytes"
+ "context"
"fmt"
"os"
"runtime"
@@ -20,7 +21,7 @@ import (
func TestLinuxSyscalls(t *testing.T) {
cfg := testConfig(t, targets.Linux, targets.AMD64)
- checker := New(cfg)
+ checker := New(context.Background(), cfg)
filesystems := []string{
// Without sysfs, the checks would also disable mount().
"", "sysfs", "ext4", "binder", "",