mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-20 20:52:07 +00:00
runtime-rs: fix assert error in test in make check
Fix assert error: error: used `assert_eq!` with a literal bool --> crates/hypervisor/src/ch/inner.rs:218:9 | 218 | assert_eq!(state.jailed, false); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison = note: `-D clippy::bool-assert-comparison` implied by `-D warnings` Fixes: #9042 Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
This commit is contained in:
parent
d9ce88ada3
commit
34c47e08b2
@ -215,7 +215,7 @@ mod tests {
|
||||
assert_eq!(state.vm_path, clh.vm_path);
|
||||
assert_eq!(state.run_dir, clh.run_dir);
|
||||
assert_eq!(state.guest_protection_to_use, clh.guest_protection_to_use);
|
||||
assert_eq!(state.jailed, false);
|
||||
assert!(!state.jailed);
|
||||
assert_eq!(state.hypervisor_type, HYPERVISOR_NAME_CH.to_string());
|
||||
|
||||
let clh = CloudHypervisorInner::restore((), state.clone())
|
||||
|
Loading…
Reference in New Issue
Block a user