| ... | ... | @@ -1860,7 +1860,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void { |
| 1860 | 1860 | } |
| 1861 | 1861 | |
| 1862 | 1862 | if (builtin.os.tag == .windows) { |
| 1863 | | const threads = std.ArrayList(*std.Thread).init(testing.allocator); |
| 1863 | var threads = std.ArrayList(*std.Thread).init(std.testing.allocator); |
| 1864 | 1864 | defer { |
| 1865 | 1865 | for (threads.toSlice()) |thread| { |
| 1866 | 1866 | thread.wait(); |
| ... | ... | @@ -1868,7 +1868,7 @@ fn run_lock_file_test(contexts: []FileLockTestContext) !void { |
| 1868 | 1868 | threads.deinit(); |
| 1869 | 1869 | } |
| 1870 | 1870 | for (ctxs) |*ctx, idx| { |
| 1871 | | threads.append(try std.Thread.spawn(ctx, Context.run)); |
| 1871 | try threads.append(try std.Thread.spawn(ctx, FileLockTestContext.run)); |
| 1872 | 1872 | } |
| 1873 | 1873 | } else { |
| 1874 | 1874 | var ctx_opt: ?*FileLockTestContext = null; |