Skip to content

Commit 19733cd

Browse files
committed
assert! instead of assert_eq with bool
1 parent e500a10 commit 19733cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

kernel/src/actions/visitors.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -824,10 +824,7 @@ mod tests {
824824
let json_handler = engine.get_json_handler();
825825
let output_schema = get_log_schema().clone();
826826
json_handler
827-
.parse_json(
828-
string_array_to_engine_data(json_strings.into()),
829-
output_schema,
830-
)
827+
.parse_json(string_array_to_engine_data(json_strings), output_schema)
831828
.unwrap()
832829
}
833830

@@ -1197,8 +1194,8 @@ mod tests {
11971194

11981195
let expected = vec![false, false, false, true, true, false, false, true];
11991196
assert_eq!(visitor.selection_vector, expected);
1200-
assert_eq!(visitor.seen_metadata, true);
1201-
assert_eq!(visitor.seen_protocol, true);
1197+
assert!(visitor.seen_metadata);
1198+
assert!(visitor.seen_protocol);
12021199
assert_eq!(visitor.seen_txns.len(), 1);
12031200
assert_eq!(visitor.total_actions, 3);
12041201
Ok(())

0 commit comments

Comments
 (0)