Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@najeira

flutter test で Too many open files が出る場合は ulimit

More than 1 year has passed since last update.

flutter test したところ、以下のように Too many open files というエラーがでた。


...

05:05 +2049 ~15 -364: loading /Applications/flutter/packages/flutter/test/widgets/editable_text_cursor_test.dart [E]
  Failed to load "/Applications/flutter/packages/flutter/test/widgets/editable_text_cursor_test.dart":
  Too many open files
    Command: /Applications/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester --disable-observatory --enable-checked-mode --verify-entry-points --enable-software-rendering --skia-deterministic-rendering --enable-dart-profiling --non-interactive --use-test-fonts --packages=/Applications/flutter/packages/flutter/.packages /var/folders/56/pjxy3nxx16v_bcn0jrkx4d6c0000gn/T/flutter_test_listener.P9AoAx/listener.dart.dill
05:15 +2075 ~15 -364: Some tests failed.

ulimitで一時的に上限を増やしましょう。

ulimit -S -n 2048

See: https://flutter.dev/docs/testing/debugging

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
najeira
Software developer。Google Cloud(特にApp Engine)とFlutterのGoogle Developers Expert。好きな言語はGo。他Flutter/Dart, Android, iOS, Python。
michael-inc
マイケルはコミュニティサービスをつくる会社、「Community Builder」です。インターネットを通して人生がより豊かになるよう、人がつながる場所をつくりつづけます。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?