diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-05-04 20:47:26 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-05-08 15:15:30 +0300 |
| commit | fd77f2cfed81f3414c079909e079a812e23071c3 (patch) | |
| tree | f9facf463ab13791faa0820c347371067ed27a79 /lib/std/event/loop.zig | |
| parent | 59f9253d94331cedd4d0518250c8094a064f6cd2 (diff) | |
| download | zig-fd77f2cfed81f3414c079909e079a812e23071c3.tar.gz zig-fd77f2cfed81f3414c079909e079a812e23071c3.zip | |
std: update usage of std.testing
Diffstat (limited to 'lib/std/event/loop.zig')
| -rw-r--r-- | lib/std/event/loop.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/event/loop.zig b/lib/std/event/loop.zig index 878cea4aa6..279d26490e 100644 --- a/lib/std/event/loop.zig +++ b/lib/std/event/loop.zig @@ -1655,7 +1655,7 @@ fn testEventLoop() i32 { fn testEventLoop2(h: anyframe->i32, did_it: *bool) void { const value = await h; - testing.expect(value == 1234); + try testing.expect(value == 1234); did_it.* = true; } @@ -1682,7 +1682,7 @@ test "std.event.Loop - runDetached" { // with the previous runDetached. loop.run(); - testing.expect(testRunDetachedData == 1); + try testing.expect(testRunDetachedData == 1); } fn testRunDetached() void { @@ -1705,7 +1705,7 @@ test "std.event.Loop - sleep" { for (frames) |*frame| await frame; - testing.expect(sleep_count == frames.len); + try testing.expect(sleep_count == frames.len); } fn testSleep(wait_ns: u64, sleep_count: *usize) void { |
