Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dturn committed Jan 11, 2018
1 parent b58d56f commit 145417b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/restart_task_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def test_restart_successful_with_partial_availability
assert_restart_success(restart.perform(["web"]))

pods = kubeclient.get_pods(namespace: @namespace, label_selector: 'name=web,app=slow-cloud')
new_pods = pods.select { |pod| pod.spec.containers.select { |c| c["name"] == "app" && c.env&.find { |n| n.name == "RESTARTED_AT" } } }
new_pods = pods.select do |pod|
pod.spec.containers.select { |c| c["name"] == "app" && c.env&.find { |n| n.name == "RESTARTED_AT" } }
end
assert new_pods.length >= 1, "Expected at least one new pod, saw #{new_pods.length}"

new_ready_pods = new_pods.select do |pod|
Expand Down

0 comments on commit 145417b

Please sign in to comment.