Skip to content

[path_provider] (mac) getApplicationDocumentsDirectory tests hanging/failing. #149713

@ditman

Description

@ditman

The following packages:

  • path_provider/path_provider
  • path_provider/path_provider_foundation

Seem to be failing the getApplicationDocumentsDirectory integration test in MacOS with either a timeout or the following exception:

══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
The following PathAccessException was thrown running a test:
Directory listing failed, path = '/Users/chrome-bot/Documents/' (OS Error: Operation not permitted,
errno = 1)

When the exception was thrown, this was the stack:
#0      _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42:24)
#1      _Directory.listSync (dart:io/directory_impl.dart:228:5)
#2      _verifySampleFile (file:///Volumes/Work/s/w/ir/x/w/packages/packages/path_provider/path_provider_foundation/example/integration_test/path_provider_test.dart:81:20)
#3      main.<anonymous closure> (file:///Volumes/Work/s/w/ir/x/w/packages/packages/path_provider/path_provider_foundation/example/integration_test/path_provider_test.dart:23:5)
<asynchronous suspension>
#4      testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:183:15)
<asynchronous suspension>
#5      TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1025:5)
<asynchronous suspension>
<asynchronous suspension>
(elided one frame from package:stack_trace)

The test description was:
  getApplicationDocumentsDirectory
════════════════════════════════════════════════════════════════════════════════════════════════════

00:16 +1 -1: getApplicationDocumentsDirectory [E]                                                                                                                                                      
  Test failed. See exception logs above.
  The test description was: getApplicationDocumentsDirectory
  

To run this test again: /Volumes/Work/s/w/ir/x/w/flutter/bin/cache/dart-sdk/bin/dart test /Volumes/Work/s/w/ir/x/w/packages/packages/path_provider/path_provider_foundation/example/integration_test/path_provider_test.dart -p vm --plain-name 'getApplicationDocumentsDirectory'

This has prevented the roll to b50eb9 roll to land. See:

Metadata

Metadata

Assignees

Labels

a: tests"flutter test", flutter_test, or one of our testsfyi-ecosystemFor the attention of Ecosystem teamp: path_providerPlugin that provides resolved paths to some platform directoriespackageflutter/packages repository. See also p: labels.platform-macBuilding on or for macOS specificallyteam-macosOwned by the macOS platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions