Index: test/pool_test.dart |
diff --git a/test/pool_test.dart b/test/pool_test.dart |
index 65fd00ee25f0ed9a498681d61077198f2d67283f..91e6833105fb56ea681ad42e2826f97f5dfd029b 100644 |
--- a/test/pool_test.dart |
+++ b/test/pool_test.dart |
@@ -276,7 +276,7 @@ void main() { |
test("disallows request() and withResource()", () { |
var pool = new Pool(1)..close(); |
expect(pool.request, throwsStateError); |
- expect(() => pool.withResource(() {}), throwsStateError); |
+ expect(pool.withResource(() {}), throwsStateError); |
}); |
test("pending requests are fulfilled", () async { |