Skip to content

Commit

Permalink
kbs_protocol: add more context for test_client test error
Browse files Browse the repository at this point in the history
Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
  • Loading branch information
Xynnn007 committed Nov 28, 2024
1 parent 49de880 commit ad8fd97
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions attestation-agent/kbs_protocol/src/client/rcar_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,11 @@ mod test {
Err(e) => {
// Skip the test if the kbs server returned ProtocolVersion error. Any other
// error is treated as a failure.
assert!(e
.to_string()
.contains("KBS Client Protocol Version Mismatch"));
assert!(
e.to_string()
.contains("KBS Client Protocol Version Mismatch"),
"Actual error: {e:#?}"
);
println!("NOTE: the test is skipped due to KBS protocol incompatibility.");
return ();
}
Expand Down

0 comments on commit ad8fd97

Please sign in to comment.