mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Refactor away rspec/wait
This commit is contained in:
parent
8f419180cf
commit
f126f0d39b
@ -25,7 +25,6 @@ gem "rspec-its", require: false
|
||||
gem "rspec_junit_formatter", require: false
|
||||
gem "rspec-retry", require: false
|
||||
gem "rspec-sorbet", require: false
|
||||
gem "rspec-wait", require: false
|
||||
gem "rubocop", require: false
|
||||
gem "rubocop-ast", require: false
|
||||
gem "simplecov", require: false
|
||||
|
@ -128,8 +128,6 @@ GEM
|
||||
rspec-sorbet (1.9.1)
|
||||
sorbet-runtime
|
||||
rspec-support (3.12.0)
|
||||
rspec-wait (0.0.9)
|
||||
rspec (>= 3, < 4)
|
||||
rspec_junit_formatter (0.6.0)
|
||||
rspec-core (>= 2, < 4, != 2.12.0)
|
||||
rubocop (1.44.0)
|
||||
@ -248,7 +246,6 @@ DEPENDENCIES
|
||||
rspec-its
|
||||
rspec-retry
|
||||
rspec-sorbet
|
||||
rspec-wait
|
||||
rspec_junit_formatter
|
||||
rubocop
|
||||
rubocop-ast
|
||||
|
@ -27,7 +27,6 @@ end
|
||||
|
||||
require "rspec/its"
|
||||
require "rspec/github"
|
||||
require "rspec/wait"
|
||||
require "rspec/retry"
|
||||
require "rspec/sorbet"
|
||||
require "rubocop/rspec/support"
|
||||
|
@ -196,10 +196,8 @@ describe SystemCommand do
|
||||
] }
|
||||
}
|
||||
|
||||
it "returns without deadlocking" do
|
||||
wait(30).for {
|
||||
described_class.run(command, **options)
|
||||
}.to be_a_success
|
||||
it "returns without deadlocking", timeout: 30 do
|
||||
expect(described_class.run(command, **options)).to be_a_success
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user