Closed
Description
json-job-dispatch 1.1.2 fails tests on beta
Mar 01 17:33:46.483 INFO blam! ---- test::test_fail stdout ----
Mar 01 17:33:46.483 INFO blam! [INFO] setting up a director in /target/debug/deps/test_fail.yDJkCNo3lhQv
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'accept'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'defer'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'reject'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'fail'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'restart'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'done'
Mar 01 17:33:46.483 INFO blam! [DEBUG] adding handler 'error'
Mar 01 17:33:46.484 INFO blam! [DEBUG] failed /target/debug/deps/test_fail.yDJkCNo3lhQv/0-fail.json: Custom { kind: Other, error: StringError("fail") }
Mar 01 17:33:46.484 INFO blam! [INFO] completed via 1-done.json
Mar 01 17:33:46.484 INFO blam! thread 'test::test_fail' panicked at 'assertion failed: `(left == right)`
Mar 01 17:33:46.484 INFO blam! left: `["Custom { kind: Other, error: StringError(\"fail\") }\n"]`,
Mar 01 17:33:46.484 INFO blam! right: `["Error { repr: Custom(Custom { kind: Other, error: StringError(\"fail\") }) }\n"]`', src/test.rs:116:5
cc @bradking
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
bradking commentedon Mar 5, 2018
Cc: @mathstuf
mathstuf commentedon Mar 5, 2018
We're testing against the
Debug
output ofio::Error
when output via aBox<Error>
. Did this change somewhere?mathstuf commentedon Mar 5, 2018
And should it be considered stable? I'm guessing we're also not robust against running under various values of
RUST_BACKTRACE
.mathstuf commentedon Mar 5, 2018
I'm seeing 52e074e from #47120.
mathstuf commentedon Mar 5, 2018
Fixed in
json-job-dispatch
in this merge request.dtolnay commentedon Mar 10, 2018
Debug impls are intended for debugging so we make no guarantees about what they look like. This has been fixed in json-job-dispatch so I think we can close.