3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【RSpec, CircleCI】エラーが出ていないのにテストが通らない

Last updated at Posted at 2022-02-04

状況

RSpecが通らなかった。エラーを見に行くと、

Your output is too large to display in the browser.

Only the last 400000 characters are displayed.

と一番上に書かれて、その下になんか白い文字がいっぱい書かれてた。
(まあ、要は表示がめっちゃ多いからブラウザに全部出せないよと書いてある。)

とりあえず、エラーっぽいのないかなーと探すと一番下に、

Exited with code exit status 134
CircleCI received exit code 134

と書かれてあったので、検索エンジンに打ち込んでみたが、これじゃなかった。

対処法

まず、エラーの確認について。上の方に表示されている、
スクリーンショット 2022-02-04 22.53.08.png
↑これを押すと、別タブでoutputのフルバージョンが表示される。

その中に

 [BUG] Segmentation fault at 0x0000000000000000

とバグってる旨が表示されている。

解決方法については、config/initializers/assets.rbに以下を追記。(一番下に記述した)

config/initializers/assets.rb
Rails.application.config.assets.configure do |env|
  env.export_concurrent = false
end

参考

以下の記事ではこのエラーの原因についても言及されている。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?