Demonstrate flaky tests.
This commit is contained in:
parent
645cf35ae1
commit
18150d9629
@ -104,6 +104,21 @@ describe Cask::CaskLoader, :cask do
|
|||||||
described_class.for("#{old_tap}/#{token}")
|
described_class.for("#{old_tap}/#{token}")
|
||||||
end.to output(%r{Cask #{old_tap}/#{token} was renamed to #{token}\.}).to_stderr
|
end.to output(%r{Cask #{old_tap}/#{token} was renamed to #{token}\.}).to_stderr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "when there is an infinite tap migration loop" do
|
||||||
|
before do
|
||||||
|
(default_tap.path/"tap_migrations.json").write({
|
||||||
|
token => old_tap.name,
|
||||||
|
}.to_json)
|
||||||
|
default_tap.clear_cache
|
||||||
|
end
|
||||||
|
|
||||||
|
it "stops recursing" do
|
||||||
|
expect do
|
||||||
|
described_class.for("#{default_tap}/#{token}")
|
||||||
|
end.not_to output.to_stderr
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -572,6 +572,21 @@ describe Formulary do
|
|||||||
described_class.loader_for("#{old_tap}/#{token}")
|
described_class.loader_for("#{old_tap}/#{token}")
|
||||||
end.to output(%r{Formula #{old_tap}/#{token} was renamed to #{token}\.}).to_stderr
|
end.to output(%r{Formula #{old_tap}/#{token} was renamed to #{token}\.}).to_stderr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "when there is an infinite tap migration loop" do
|
||||||
|
before do
|
||||||
|
(default_tap.path/"tap_migrations.json").write({
|
||||||
|
token => old_tap.name,
|
||||||
|
}.to_json)
|
||||||
|
default_tap.clear_cache
|
||||||
|
end
|
||||||
|
|
||||||
|
it "stops recursing" do
|
||||||
|
expect do
|
||||||
|
described_class.loader_for("#{default_tap}/#{token}")
|
||||||
|
end.not_to output.to_stderr
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user