Skip to content

Commit

Permalink
Fix unittest after kubernetes error message changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciekPytel committed May 10, 2022
1 parent 08c0e58 commit 159dae0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ func TestDebugInfo(t *testing.T) {

predicateErr := predicateChecker.CheckPredicates(clusterSnapshot, p1, "n1")
assert.NotNil(t, predicateErr)
assert.Equal(t, "node(s) had taint {SomeTaint: WhyNot?}, that the pod didn't tolerate", predicateErr.Message())
assert.Equal(t, "node(s) had untolerated taint {SomeTaint: WhyNot?}", predicateErr.Message())
assert.Contains(t, predicateErr.VerboseMessage(), "RandomTaint")
}

0 comments on commit 159dae0

Please sign in to comment.