diff --git a/test/test_pub.dart b/test/test_pub.dart
index 05b05d841effa3b905144981f163794f9d6e0024..bb3f6a21915bf76fb9ff4cad88e4705bd1f64d5c 100644
--- a/test/test_pub.dart
+++ b/test/test_pub.dart
@@ -412,11 +412,11 @@ void scheduleSymlink(String target, String symlink) {
 /// matching that object, which can be a literal JSON object or any other
 /// [Matcher].
 void schedulePub({List args, output, error, outputJson,
-    Future<Uri> tokenEndpoint, int exitCode: exit_codes.SUCCESS}) {
+    int exitCode: exit_codes.SUCCESS}) {
   // Cannot pass both output and outputJson.
   assert(output == null || outputJson == null);
 
-  var pub = startPub(args: args, tokenEndpoint: tokenEndpoint);
+  var pub = startPub(args: args);
   pub.shouldExit(exitCode);
 
   var failures = [];