Skip to content

Commit 581a0ba

Browse files
committed
fix program-lader tests
1 parent 0d648a5 commit 581a0ba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/runtime/program_loader.zig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,8 @@ test "loadPrograms: bad owner" {
510510
loaded_programs.deinit(allocator);
511511
}
512512

513-
switch (loaded_programs.get(program_key).?) {
514-
.failed => {},
515-
.loaded => std.debug.panic("Program should not load!", .{}),
516-
}
513+
if (loaded_programs.get(program_key) != null)
514+
std.debug.panic("Program should not load!", .{});
517515
}
518516
}
519517

0 commit comments

Comments
 (0)