change how we specify test timeout

This commit is contained in:
Devon Carew 2015-10-24 12:33:17 -07:00
parent 98d61fc181
commit b7f918c92b

View File

@ -2,10 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This test can take a while due to network requests.
@Timeout(const Duration(minutes: 2))
library init_test;
import 'dart:io';
import 'package:args/command_runner.dart';
@ -46,6 +42,8 @@ defineTests() {
print(exec.stderr);
}
expect(exec.exitCode, 0);
});
},
// This test can take a while due to network requests.
timeout: new Timeout(new Duration(minutes: 2)));
});
}