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

Unified Diff: tests/standalone/io/http_shutdown_test.dart

Issue 12213092: Rework Timer interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 10 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
Index: tests/standalone/io/http_shutdown_test.dart
diff --git a/tests/standalone/io/http_shutdown_test.dart b/tests/standalone/io/http_shutdown_test.dart
index 6d83bd437ae5dd902b9e20c48386aab047f80f2f..c296be5f67a0b4c401c6aa684da47f2137c66fab 100644
--- a/tests/standalone/io/http_shutdown_test.dart
+++ b/tests/standalone/io/http_shutdown_test.dart
@@ -116,7 +116,7 @@ void test4() {
server.listen("127.0.0.1", 0);
server.defaultRequestHandler = (var request, var response) {
request.inputStream.onClosed = () {
- new Timer.repeating(100, (timer) {
+ new Timer.repeating(new Duration(milliseconds: 100), (timer) {
if (server.connectionsInfo().total == 0) {
server.close();
timer.cancel();
@@ -157,7 +157,7 @@ void test5(int totalConnections) {
conn.onError = (e) => Expect.isTrue(e is HttpException);
}
bool clientClosed = false;
- new Timer.repeating(100, (timer) {
+ new Timer.repeating(new Duration(milliseconds: 100), (timer) {
if (!clientClosed) {
if (server.connectionsInfo().total == totalConnections) {
clientClosed = true;
« no previous file with comments | « tests/standalone/io/http_server_early_server_close_test.dart ('k') | tests/standalone/io/list_output_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698