Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: test/shelf_proxy_test.dart

Issue 1956423002: Use the new test runner. (Closed) Base URL: git@github.com:dart-lang/shelf_proxy.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/shelf_proxy_test.dart
diff --git a/test/shelf_proxy_test.dart b/test/shelf_proxy_test.dart
index cf70cb63dc30165f5360052bf5b577efb853f530..b88f059d2397aa74ba33a2ef3d2a1bf4df3f6841 100644
--- a/test/shelf_proxy_test.dart
+++ b/test/shelf_proxy_test.dart
@@ -215,13 +215,13 @@ void main() {
/// [targetPath] is the root-relative path on the target server to proxy to. It
/// defaults to `/`.
void createProxy(shelf.Handler handler, {String targetPath}) {
- handler = wrapAsync(handler, 'target server handler');
+ handler = expectAsync(handler, reason: 'target server handler');
schedule(() {
return shelf_io.serve(handler, 'localhost', 0).then((targetServer) {
targetUri = Uri.parse('http://localhost:${targetServer.port}');
if (targetPath != null) targetUri = targetUri.resolve(targetPath);
- var proxyServerHandler = wrapAsync(
- proxyHandler(targetUri), 'proxy server handler');
+ var proxyServerHandler = expectAsync(
+ proxyHandler(targetUri), reason: 'proxy server handler');
return shelf_io.serve(proxyServerHandler, 'localhost', 0)
.then((proxyServer) {
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698