Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jsonchecker: retry on EOF/UnexpectedEOF in unmarshaller
I ran into a corner case in CI a few times where it seems that the exporter is in the middle of writing an event when the jsonchecker decides to open the file and check it. In this case, the unmarshaller will bubble up either an EOF or UnexpectedEOF error which will fail the test. To handle this, let's just treat these errors the same way we treat regular JSON EOF: by retrying after a few seconds. Signed-off-by: William Findlay <[email protected]>
- Loading branch information