From 47dd3dcffbfbf146e93712eb4980879a1f523c33 Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Mon, 13 Mar 2023 01:15:55 -0700 Subject: [PATCH] use t.Fatal if we cannot enable process privileges Signed-off-by: Gabriel Adrian Samfira --- integration/client/snapshot_windows_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/client/snapshot_windows_test.go b/integration/client/snapshot_windows_test.go index cc5c53fdf..ea1109e98 100644 --- a/integration/client/snapshot_windows_test.go +++ b/integration/client/snapshot_windows_test.go @@ -33,7 +33,7 @@ func runTestSnapshotterClient(t *testing.T) { // The SeBackupPrivilege and SeRestorePrivilege gives us access to system files inside the container mount points // (and everywhere on the system), without having to explicitly set DACLs on each location inside the mount point. if err := winio.EnableProcessPrivileges([]string{winio.SeBackupPrivilege, winio.SeRestorePrivilege}); err != nil { - t.Error(err) + t.Fatal(err) } defer winio.DisableProcessPrivileges([]string{winio.SeBackupPrivilege, winio.SeRestorePrivilege}) testsuite.SnapshotterSuite(t, "SnapshotterClient", newSnapshotter)