Commit 7119fe22 authored by Rohit Agarwal's avatar Rohit Agarwal

Fix TestForgivenessAdmission.

This test would never fail because Annotations were empty in all cases! This was missed when Tolerations were moved from Annotations to be part of Pod.Spec in #38957.
parent c3ed0f26
...@@ -267,8 +267,8 @@ func TestForgivenessAdmission(t *testing.T) { ...@@ -267,8 +267,8 @@ func TestForgivenessAdmission(t *testing.T) {
t.Errorf("[%s]: unexpected error %v for pod %+v", test.description, err, test.requestedPod) t.Errorf("[%s]: unexpected error %v for pod %+v", test.description, err, test.requestedPod)
} }
if !helper.Semantic.DeepEqual(test.expectedPod.Annotations, test.requestedPod.Annotations) { if !helper.Semantic.DeepEqual(test.expectedPod.Spec.Tolerations, test.requestedPod.Spec.Tolerations) {
t.Errorf("[%s]: expected %#v got %#v", test.description, test.expectedPod.Annotations, test.requestedPod.Annotations) t.Errorf("[%s]: expected %#v got %#v", test.description, test.expectedPod.Spec.Tolerations, test.requestedPod.Spec.Tolerations)
} }
} }
} }
......
Markdown is supported
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