Skip to content

Commit 8531793

Browse files
use t.Fatal if we cannot enable process privileges
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent 5b3ee41 commit 8531793

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration/client/snapshot_windows_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func runTestSnapshotterClient(t *testing.T) {
3333
// The SeBackupPrivilege and SeRestorePrivilege gives us access to system files inside the container mount points
3434
// (and everywhere on the system), without having to explicitly set DACLs on each location inside the mount point.
3535
if err := winio.EnableProcessPrivileges([]string{winio.SeBackupPrivilege, winio.SeRestorePrivilege}); err != nil {
36-
t.Error(err)
36+
t.Fatal(err)
3737
}
3838
defer winio.DisableProcessPrivileges([]string{winio.SeBackupPrivilege, winio.SeRestorePrivilege})
3939
testsuite.SnapshotterSuite(t, "SnapshotterClient", newSnapshotter)

0 commit comments

Comments
 (0)