From 75e0c5d4061d68dc4802285ec137e464f4e01b17 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 23 Mar 2025 14:14:45 +0900 Subject: test/sandbox: parse full test case This makes declaring multiple tests much cleaner. Signed-off-by: Ophestra --- test/sandbox/fs_test.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'test/sandbox/fs_test.go') diff --git a/test/sandbox/fs_test.go b/test/sandbox/fs_test.go index 5ac31dff..1262ddac 100644 --- a/test/sandbox/fs_test.go +++ b/test/sandbox/fs_test.go @@ -75,10 +75,4 @@ func TestCompare(t *testing.T) { } }) } - - t.Run("assert", func(t *testing.T) { - oldFatal := sandbox.SwapFatal(t.Fatalf) - t.Cleanup(func() { sandbox.SwapFatal(oldFatal) }) - sandbox.MustAssertFS(make(fstest.MapFS), sandbox.MustWantFile(t, &sandbox.FS{Mode: 0xDEADBEEF})) - }) } -- cgit v1.3.1