|
ASSERT_OK properly asserts whether a StatusWith<T> is OK or not, but when an assertion fails it will log an unreadable message.
e.g.
Expected ::mongo::Status::OK() == (m) (OK == [mongo::StatusWith<mongo::Message>=a0 22 42 2a 78 7f 00 00 00 a5 03 37 78 7f 00 00 00 01 62 10 fe 7f 00 00]) @src/mongo/transport/grpc/grpc_transport_layer_test.cpp:242
|
We should update this to log the message an ASSERT_OK on a non-OK Status would.
e.g.
Expected ::mongo::Status::OK() == (m.getStatus()) (OK == CallbackCanceled foo) @src/mongo/transport/grpc/grpc_transport_layer_test.cpp:242
|
|