Skip to content

Commit

Permalink
rust: fix typo in test case
Browse files Browse the repository at this point in the history
Signed-off-by: zhongjie <[email protected]>
  • Loading branch information
intelzhongjie committed Mar 4, 2024
1 parent 679aa08 commit 7b157a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rust/cctrusted_vm/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,8 @@ mod sdk_api_tests {
let replay_results = match API::replay_cc_eventlog(event_logs) {
Ok(r) => r,
Err(e) => {
assert_eq!(true, format!("{:?}", e).is_empty());
// This is the expected behavior. Invalid log is not replayed.
assert_ne!(true, format!("{:?}", e).is_empty());
return;
}
};
Expand Down

0 comments on commit 7b157a1

Please sign in to comment.