Fix tests
diff --git a/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart b/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart index 0e9477c..8215ec8 100644 --- a/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart +++ b/packages/flutter_tools/test/integration.shard/debug_adapter/flutter_adapter_test.dart
@@ -555,8 +555,10 @@ ], eagerError: true); // We should not have stopped on the original thread, but the new thread - // from after the restart. - expect(newThreadId, isNot(equals(originalThreadId))); + // from after the restart. However, the DAP reuses thread IDs once freed, + // so the new thread ID should match the original thread ID due to the + // original isolate being killed before the new one starts. + expect(newThreadId, equals(originalThreadId)); await dap.client.terminate(); });
diff --git a/packages/flutter_tools/test/integration.shard/test_utils.dart b/packages/flutter_tools/test/integration.shard/test_utils.dart index 115d21f..b004394 100644 --- a/packages/flutter_tools/test/integration.shard/test_utils.dart +++ b/packages/flutter_tools/test/integration.shard/test_utils.dart
@@ -19,7 +19,7 @@ final String flutterBin = fileSystem.path.join( getFlutterRoot(), 'bin', - platform.isWindows ? 'flutter-dev.bat' : 'flutter-dev', + platform.isWindows ? 'flutter.bat' : 'flutter', ); /// The [Platform] for the integration test environment.