Skip to content

Commit

Permalink
Merge pull request ManageIQ#16654 from agrare/fix_sporadic_test_failu…
Browse files Browse the repository at this point in the history
…re_in_container_orchestrator

Fix test failure where tempfile goes out of scope
  • Loading branch information
carbonin authored Dec 12, 2017
2 parents c2fb020 + 51fdf47 commit 470ce7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/lib/container_orchestrator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
describe ContainerOrchestrator do
let(:connection) { subject.send(:connection) }
let(:kube_connection) { subject.send(:kube_connection) }
let(:cert_path) { Tempfile.new("cert").path }
let(:token_path) { Tempfile.new("servicetoken").path }
let(:cert) { Tempfile.new("cert") }
let(:token) { Tempfile.new("token") }
let(:cert_path) { cert.path }
let(:token_path) { token.path }
let(:kube_host) { "kube.example.com" }
let(:kube_port) { "8443" }
let(:namespace) { "manageiq" }
Expand Down

0 comments on commit 470ce7b

Please sign in to comment.