Rails spring testunit Bad文件描述符

时间:2016-07-28 08:42:04

标签: ruby-on-rails ruby bundler rails-spring

我正在尝试使用带有rails 3.2.22 / ruby​​ 2.2.5的spring 1.4.0,并且正在执行:

bundle exec spring testunit <test_file.rb>

输出:

/Users/igor/.rbenv/versions/2.2.5/gemsets/<app>/gems/spring-1.4.0/lib/spring/application/boot.rb:7:in 'for_fd': Bad file descriptor - not a socket file descriptor (Errno::EBADF) from /Users/igor/.rbenv/versions/2.2.5/gemsets/<app>/gems/spring-1.4.0/lib/spring/application/boot.rb:7:in '<top (required)>' from -e:1:in 'require' from -e:1:in '<main>'

根据我在Spring源代码中收集的内容,错误的指令是UNIXSocket.for_fd(3),它应该是第一个可用的文件句柄,为什么它被捕获为Bad file descriptor

任何帮助将不胜感激,谢谢!

0 个答案:

没有答案