Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit ae3e0e5

Browse files
GrapeBaBagrapebaba
andauthored
fix: close test dir to avoid error.ProcessFdQuotaExceeded (#82)
Fix #40 Signed-off-by: grapebaba <[email protected]> Co-authored-by: grapebaba <[email protected]>
1 parent ef6e164 commit ae3e0e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/spec/write_static_tests.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ fn writeStaticTest(
136136
\\ }});
137137
\\ defer allocator.free(test_dir_name);
138138
\\
139-
\\ const test_dir = std.fs.cwd().openDir(test_dir_name, .{{}}) catch return error.SkipZigTest;
139+
\\ var test_dir = std.fs.cwd().openDir(test_dir_name, .{{}}) catch return error.SkipZigTest;
140+
\\ defer test_dir.close();
140141
\\ try test_case.validTestCase(types.{s}.{s}, allocator, test_dir, "roots.yaml");
141142
\\}}
142143
\\

0 commit comments

Comments
 (0)