Index: tests/standalone/io/secure_session_resume_test.dart |
diff --git a/tests/standalone/io/secure_session_resume_test.dart b/tests/standalone/io/secure_session_resume_test.dart |
index fa0edd116a0bb3dcdffc08eb8579aae7bcf54e87..76746eb78f26930062ae7309f160c5e9636ac1cd 100644 |
--- a/tests/standalone/io/secure_session_resume_test.dart |
+++ b/tests/standalone/io/secure_session_resume_test.dart |
@@ -123,11 +123,11 @@ void main() { |
keepAlive.close(); |
}; |
- int delay = 0; |
- int delay_between_connections = 300; // Milliseconds. |
+ Duration delay = const Duration(milliseconds: 0); |
+ Duration delay_between_connections = const Duration(milliseconds: 300); |
for (var x in CLIENT_NAMES) { |
- new Timer(delay, (_) { |
+ new Timer(delay, () { |
new SecureTestClient(port, x); |
}); |
delay += delay_between_connections; |