Skip to content

Commit

Permalink
revert the workaround for flutter/devtools#6719
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Nov 21, 2023
1 parent 3379ff9 commit a2a9d1e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions packages/patrol/lib/src/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,6 @@ class PatrolBinding extends LiveTestWidgetsFlutterBinding {

final DevtoolsServiceExtensions _serviceExtensions;

/// Temporary workaround for DevTools extension changing this value and not
/// resetting it.
///
/// See https://github.com/flutter/devtools/issues/6719
TargetPlatform? workaroundDebugDefaultTargetPlatformOverride;

@override
void initInstances() {
super.initInstances();
Expand Down
3 changes: 0 additions & 3 deletions packages/patrol/lib/src/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ void patrolTest(
final waitSeconds = const int.fromEnvironment('PATROL_WAIT');
final waitDuration = Duration(seconds: waitSeconds);

debugDefaultTargetPlatformOverride =
binding.workaroundDebugDefaultTargetPlatformOverride;

if (waitDuration > Duration.zero) {
final stopwatch = Stopwatch()..start();
await Future.doWhile(() async {
Expand Down
2 changes: 0 additions & 2 deletions packages/patrol_cli/lib/src/test_bundler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ Future<void> main() async {
final nativeAutomator = NativeAutomator(config: NativeAutomatorConfig());
await nativeAutomator.initialize();
PatrolBinding.ensureInitialized(NativeAutomatorConfig())
..workaroundDebugDefaultTargetPlatformOverride =
debugDefaultTargetPlatformOverride;
// START: GENERATED TEST GROUPS
${generateGroupsCode([testFilePath]).split('\n').map((e) => ' $e').join('\n')}
Expand Down

0 comments on commit a2a9d1e

Please sign in to comment.