Skip to content
Snippets Groups Projects
Commit 7ff0ada3 authored by Steve Abrams's avatar Steve Abrams
Browse files

Fix flaky conan specs

Explicitely define headers to prevent
lazy loading from allowing the incorrect
token from being used.
parent 5b18dcdf
No related merge requests found
......@@ -663,6 +663,7 @@
RSpec.shared_examples 'creates build_info when there is a job' do
context 'with job token' do
let(:jwt) { build_jwt_from_job(job) }
let(:headers_with_token) { build_token_auth_header(jwt.encoded).merge(workhorse_headers) }
it 'creates a build_info record' do
expect { subject }.to change { Packages::BuildInfo.count }.by(1)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment