| ... | @@ -31,7 +31,7 @@ pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{ | ... | @@ -31,7 +31,7 @@ pub var allocator_instance: std.heap.GeneralPurposeAllocator(.{ |
| 31 | }; | 31 | }; |
| 32 | | 32 | |
| 33 | pub var io_instance: Io.Threaded = undefined; | 33 | pub var io_instance: Io.Threaded = undefined; |
| 34 | pub const io = io_instance.io(); | 34 | pub const io = if (builtin.is_test) io_instance.io() else @compileError("not testing"); |
| 35 | | 35 | |
| 36 | /// TODO https://github.com/ziglang/zig/issues/5738 | 36 | /// TODO https://github.com/ziglang/zig/issues/5738 |
| 37 | pub var log_level = std.log.Level.warn; | 37 | pub var log_level = std.log.Level.warn; |