Ruby: SQLite3::BusyException: database is locked:

后端 未结 18 1036
感动是毒
感动是毒 2020-11-28 23:29

Ran into this error message whilst developing tonight: SQLite3::BusyException: database is locked:

I have two models:

  • Podcasts have many
18条回答
  •  情话喂你
    2020-11-29 00:17

    You may also have enabled threads when parallelizing your tests. Remember to disable the option in test/test_helper.rb :

    parallelize(workers: :number_of_processors, with: :threads)
    

    to

    parallelize(workers: :number_of_processors)
    

    https://edgeguides.rubyonrails.org/testing.html#parallel-testing-with-threads

提交回复
热议问题