简体   繁体   English

RSpec —测试似乎卡住了

[英]RSpec — Tests seeming to be getting stuck

So I have a handful of tests. 因此,我进行了一些测试。 These have run in the past, but now when I run rspec it seemingly just hangs. 这些已经在过去运行,但是现在当我运行rspec它似乎挂起了。

Any thoughts here or best approach to go about debugging to figure out why it's hanging? 这里有什么想法或最好的调试方法来弄清楚为什么挂起?

UPDATE: 更新:

Looks like it's hanging on trying to load the schema: 看起来似乎在尝试加载模式:

ActiveRecord::SchemaMigration Load (1.4ms)[0m  [1mSELECT `schema_migrations`.* FROM `schema_migrations`

UPDATE: 更新:

Noticed rails c is also hanging 注意到rails c也挂了

Welp, so restarted my computer and set MySQL to boot up on start, and that solved the issue! Welp,所以重新启动了我的计算机,并将MySQL设置为在启动时启动,这解决了该问题! Guessing it must have had something to do with, MySQL in some fashion or another 猜测它一定与MySQL有某种关系

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM