Skip to content

Commit

Permalink
spec: fix flaky Canvas::Vault.read from disk config Pt. 3
Browse files Browse the repository at this point in the history
refs FOO-1853
flag = none

test plan:
 • tests pass
 • spec is no longer flaky (verify via splunk)

Change-Id: I0907bb81c6d053caaccc88c1385b2d4f6c17f81a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/262581
Tested-by: Service Cloud Jenkins <[email protected]>
Reviewed-by: Aaron Ogata <[email protected]>
QA-Review: August Thornton <[email protected]>
Product-Review: August Thornton <[email protected]>
  • Loading branch information
augiethornton committed Apr 9, 2021
1 parent d879ac0 commit 11df482
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/canvas/vault_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ module Canvas
"security_token"=>"fake-security-token"
}
}
allow(ConfigFile).to receive(:load).and_return(creds_hash)
allow(described_class).to receive(:config).and_return(local_config)
allow(ConfigFile).to receive(:load).and_return(creds_hash)
result = described_class.read(cred_path)
expect(result[:security_token]).to eq("fake-security-token")
end
Expand Down

0 comments on commit 11df482

Please sign in to comment.