Don't hold up the entire event queue for a single bad event. Also, don't retry forever.

This commit is contained in:
Daniel Smith
2014-11-20 16:01:42 -08:00
parent c6158b8aa9
commit 4437f03dbf
5 changed files with 183 additions and 26 deletions

View File

@@ -117,7 +117,7 @@ func TestNewInvalid(t *testing.T) {
vErr, expected := testCase.Err, testCase.Details
expected.Causes[0].Message = vErr.Error()
err := NewInvalid("kind", "name", ValidationErrorList{vErr})
status := err.(*statusError).Status()
status := err.(*StatusError).ErrStatus
if status.Code != 422 || status.Reason != api.StatusReasonInvalid {
t.Errorf("%d: unexpected status: %#v", i, status)
}