That's fine.  Occasionally you run into side-effects due to the exception short-circuiting some cleanup code.  Also, CI servers tend to treat errors and failures differently.  This is a (known) failure, and not say a runtime error.