mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

This should reduce the number of flakes without actually increasing the timeout, so we'll still find out quickly if a test is hanging. The numbers here might need tweaking. Maybe the default two seconds is too short for CI bots.
14 lines
504 B
Dart
14 lines
504 B
Dart
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('flutter_test timeout logic - addTime - positive', (WidgetTester tester) async {
|
|
await tester.runAsync(() async {
|
|
await new Future<void>.delayed(const Duration(milliseconds: 3500));
|
|
}, additionalTime: const Duration(milliseconds: 2000));
|
|
});
|
|
}
|