Skip to content

Commit

Permalink
fix tests to compare bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFluffy committed Dec 6, 2024
1 parent 25fcbbe commit 06a72e7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/ibc-types-core-channel/src/events/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,18 @@ fn ibc_to_abci_channel_events() {
assert_eq!(t.kind, t.event.kind);
assert_eq!(t.expected_keys.len(), t.event.attributes.len());
for (i, e) in t.event.attributes.iter().enumerate() {
assert_eq!(e.key, t.expected_keys[i], "key mismatch for {:?}", t.kind,);
assert_eq!(
e.key_bytes(),
t.expected_keys[i].as_bytes(),
"key mismatch for {:?}",
t.kind,
);
}
assert_eq!(t.expected_values.len(), t.event.attributes.len());
for (i, e) in t.event.attributes.iter().enumerate() {
assert_eq!(
e.value, t.expected_values[i],
e.value_bytes(),
t.expected_values[i].as_bytes(),
"value mismatch for {:?}",
t.kind,
);
Expand Down

0 comments on commit 06a72e7

Please sign in to comment.