Skip to content

Commit 7aed657

Browse files
committed
fix network test
1 parent bc17af8 commit 7aed657

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

packages/devtools_app/test/screens/debugger/debugger_codeview_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ void main() {
109109
);
110110
await expectLater(
111111
find.byType(CodeView),
112-
matchesDevToolsGolden('../../test_infra/goldens/codeview_scrollbars.png'),
112+
matchesDevToolsGolden(
113+
'../../test_infra/goldens/codeview_scrollbars.png',
114+
),
113115
);
114116
},
115117
);

packages/devtools_app/test/screens/memory/framework/memory_service_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import 'package:devtools_app/src/screens/memory/framework/memory_controller.dart
66
import 'package:devtools_app/src/screens/memory/shared/primitives/memory_timeline.dart';
77
import 'package:flutter_test/flutter_test.dart';
88

9-
import '../../../test_infra/flutter_test_driver.dart' show FlutterRunConfiguration;
9+
import '../../../test_infra/flutter_test_driver.dart'
10+
show FlutterRunConfiguration;
1011
import '../../../test_infra/flutter_test_environment.dart';
1112

1213
late MemoryController memoryController;

packages/devtools_app/test/screens/network/har_network_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:devtools_app/src/screens/network/har_network_data.dart';
1212
import 'package:flutter_test/flutter_test.dart';
1313

1414
void main() {
15-
final file = File('test/network/sample_requests.json');
15+
final file = File('test/test_infra/test_data/network/sample_requests.json');
1616
final fileContent = file.readAsStringSync();
1717
final jsonData = jsonDecode(fileContent) as Map<String, Object?>;
1818

packages/devtools_app/test/screens/network/sample_requests.json renamed to packages/devtools_app/test/test_infra/test_data/network/sample_requests.json

File renamed without changes.

packages/devtools_test/lib/src/helpers/utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import 'package:path/path.dart' as path;
1414

1515
/// The tag to add to a test case to ensure it is run on each commit to the
1616
/// Flutter SDK.
17-
///
17+
///
1818
/// Before adding this tag, first check if the test is included in one of the
1919
/// tested subdirectories defined by tool/ci/flutter_customer_tests/test.sh. If
2020
/// it is, there is no need to add the tag to the individual test case since the
@@ -23,7 +23,7 @@ const includeForCustomerTestsTag = 'include-for-flutter-customer-tests';
2323

2424
/// The tag to add to a test case to ensure it is not run on each commit to the
2525
/// Flutter SDK.
26-
///
26+
///
2727
/// Before adding this tag, first check if the test is included in one of the
2828
/// tested subdirectories defined by tool/ci/flutter_customer_tests/test.sh. If
2929
/// it is not, there is no need to add this tag to the individual test case

0 commit comments

Comments
 (0)