| commit | d0d5d9dd04574305cf86bf1eb3e787549100ea28 | [log] [tgz] |
|---|---|---|
| author | Tim Windelschmidt <tim@monogon.tech> | Wed Mar 26 22:07:11 2025 +0100 |
| committer | Tim Windelschmidt <tim@monogon.tech> | Mon Jun 02 18:57:29 2025 +0000 |
| tree | e685757c85066ce4671e125374725093577ea986 | |
| parent | b554dd389e51718d5acf084cd706d32e16f3994d [diff] [blame] |
treewide: use Fatal in tests instead of Error Error doesn't return the goroutine, but these cases are final and should end the test case. Change-Id: I9d87e268b56acd7d1ff5883bb82bf3d74c309176 Reviewed-on: https://review.monogon.dev/c/monogon/+/4044 Reviewed-by: Jan Schär <jan@monogon.tech> Tested-by: Jenkins CI
diff --git a/osbase/fsquota/fsquota_test.go b/osbase/fsquota/fsquota_test.go index 97cf8bc..2850b4f 100644 --- a/osbase/fsquota/fsquota_test.go +++ b/osbase/fsquota/fsquota_test.go
@@ -45,7 +45,7 @@ t.Fatal(err, string(out)) } if err := os.Mkdir("/test", 0755); err != nil { - t.Error(err) + t.Fatal(err) } if err := unix.Mount("/dev/ram0", "/test", "xfs", unix.MS_NOEXEC|unix.MS_NODEV, "prjquota"); err != nil {