Skip to content

Commit

Permalink
Use setrlimit when running test on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed May 29, 2024
1 parent dcee1cf commit 26b07c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/realm_dart/test/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ void setupTests() {
printOnFailure('${record.category} ${record.level.name}: ${record.message}');
});

if (Platform.isIOS) {
final maxFiles = realmCore.setrlimit(1024);
print('Max files: $maxFiles');
}

// Enable this to print platform info, including current PID
_printPlatformInfo();
});
Expand Down

0 comments on commit 26b07c7

Please sign in to comment.