我已经克隆了 Diaspora 的来源,并且我有一个可以正常运行的本地 pod。但是当我运行$ rake spec
一些初始测试通过时,它们都开始失败。此外,我发现有趣的是,它们每次rake spec
运行时都会在不同的点失败。
他们都因错误而失败:
An error occurred in an after hook
ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket() can't get socket descriptor: ROLLBACK
occurred at /home/darshan/.rvm/gems/ruby-2.0.0-p353@diaspora/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `async_exec'
Postgres 的日志说:
could not receive data from client: Connection reset by peer
unexpected EOF on client connection