Index: tests/standalone/io/raw_secure_socket_pause_test.dart |
diff --git a/tests/standalone/io/raw_secure_socket_pause_test.dart b/tests/standalone/io/raw_secure_socket_pause_test.dart |
index a223e81d5bb21457b5f3662070fa8b7d3930c34a..2b3f63f9eca0b9391bf92cdd7861501730ba286f 100644 |
--- a/tests/standalone/io/raw_secure_socket_pause_test.dart |
+++ b/tests/standalone/io/raw_secure_socket_pause_test.dart |
@@ -31,7 +31,7 @@ void main() { |
void runPauseTest() { |
subscription.pause(); |
paused = true; |
- new Timer(500, (_) { |
+ new Timer(const Duration(milliseconds: 500), () { |
paused = false; |
subscription.resume(); |
}); |
@@ -42,7 +42,7 @@ void main() { |
readEventsTested = true; |
socket.readEventsEnabled = false; |
readEventsPaused = true; |
- new Timer(500, (_) { |
+ new Timer(const Duration(milliseconds: 500), () { |
readEventsPaused = false; |
socket.readEventsEnabled = true; |
}); |