Increase spec timeout to 30 seconds

I’ve noticed the deadlock test in `cask/system_command_spec.rb` appears to fail spuriously, e. g. in #4529.

Details:

https://travis-ci.org/Homebrew/brew/jobs/406827725#L297-L318

With the spec taking 2 seconds on average on my 2017 MBP, I feel it’s
entirely plausible for the aging test-bot hardware to get knocked by
the 15-second timeout.

Given that the spec will pass early anyway if it passes, I feel it’s
reasonable to bump the timeout to 30 seconds.
This commit is contained in:
Claudia 2018-07-22 16:27:16 +02:00
parent 7ad999f5f8
commit 8666d8fa18
No known key found for this signature in database
GPG Key ID: 246AC3C0F10BE51F

View File

@ -183,7 +183,7 @@ describe Hbc::SystemCommand, :cask do
}
it "returns without deadlocking" do
wait(15).for {
wait(30).for {
described_class.run(command, options)
}.to be_a_success
end