Merge pull request #11592 from bayandin/fix-github-test
github_spec: Fix failed test due to expired artifacts
This commit is contained in:
commit
ff48561df1
@ -77,16 +77,16 @@ describe GitHub do
|
|||||||
it "fails to find artifacts that don't exist" do
|
it "fails to find artifacts that don't exist" do
|
||||||
expect {
|
expect {
|
||||||
described_class.get_artifact_url(
|
described_class.get_artifact_url(
|
||||||
described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "false_bottles"),
|
described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "false_bottles"),
|
||||||
)
|
)
|
||||||
}.to raise_error(/No artifact .+ was found/)
|
}.to raise_error(/No artifact .+ was found/)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "gets an artifact link" do
|
it "gets an artifact link" do
|
||||||
url = described_class.get_artifact_url(
|
url = described_class.get_artifact_url(
|
||||||
described_class.get_workflow_run("Homebrew", "homebrew-core", 51971, artifact_name: "bottles"),
|
described_class.get_workflow_run("Homebrew", "homebrew-core", 79751, artifact_name: "bottles"),
|
||||||
)
|
)
|
||||||
expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/3557392/zip")
|
expect(url).to eq("https://api.github.com/repos/Homebrew/homebrew-core/actions/artifacts/69422207/zip")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user