From 807fbc13dcff3ecf77e0b9add9d575146e8256d3 Mon Sep 17 00:00:00 2001 From: SaloniRathi <45892093+SaloniRathi@users.noreply.github.com> Date: Thu, 16 Jul 2026 16:28:53 +0000 Subject: [PATCH] core/mount/manager: improve TestMkdirHandler failure messages Signed-off-by: SaloniRathi <45892093+SaloniRathi@users.noreply.github.com> --- core/mount/manager/mkdir_linux_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/mount/manager/mkdir_linux_test.go b/core/mount/manager/mkdir_linux_test.go index c77ff1c827af8..815d655a35502 100644 --- a/core/mount/manager/mkdir_linux_test.go +++ b/core/mount/manager/mkdir_linux_test.go @@ -77,14 +77,14 @@ func TestMkdirHandler(t *testing.T) { t.Fatalf("expected directory") } if fi.Mode().Perm() != testmode { - t.Fatalf("expected mode 0775 got %o", fi.Mode().Perm()) + t.Fatalf("expected mode %04o got %04o", testmode, fi.Mode().Perm()) } sys := fi.Sys().(*syscall.Stat_t) if int(sys.Uid) != luid { - t.Fatalf("expected uid 1000 got %d", sys.Uid) + t.Fatalf("expected uid %d got %d", luid, sys.Uid) } if int(sys.Gid) != lgid { - t.Fatalf("expected gid 1000 got %d", sys.Gid) + t.Fatalf("expected gid %d got %d", lgid, sys.Gid) } m.Options = append(m.Options, fmt.Sprintf("X-containerd.mkdir.path=%s", filepath.Join(td, "notinroot")))