hereticles

https://icle.es

1 posts

Tech

Subscribe via RSS

  1. Testing SSE in zig When EVERYTHING Blocks

    I rely on TDD heavily and really don’t like manual testing. So when I started building SSE support into mantel, I wanted a proper e2e test — connect a client, read the events, assert on them. Except, I ran into a problem. http.zig’s test helpers don’t work with SSE - they expect a request/response cycle that completes. And zig 0.16’s new Io framework supports neither cancellation nor non-blocking reads. So: everything blocks, and there’s no way to stop it. If I wasn’t building this because it’s…

    0 ▲