Error when trying to test an async Dart ajax HttpRequest
I think what you want is this:
test("sends an ajax request and acknowledges a 200 response from the server", () async { await HttpRequest.postFormData("http://localhost:4567/errors", { 'hello': 'world'}); print("hello!"); // or expect(x, y); });