fix some tests
This commit is contained in:
parent
b024343e17
commit
68939d3699
@ -2,7 +2,7 @@
|
||||
name = "satrs"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
rust-version = "1.71.1"
|
||||
rust-version = "1.82.0"
|
||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||
description = "A framework to build software for remote systems"
|
||||
homepage = "https://absatsw.irs.uni-stuttgart.de/projects/sat-rs/"
|
||||
|
@ -81,7 +81,7 @@ where
|
||||
{
|
||||
fn is_commandable(&self, id: ComponentId) -> bool {
|
||||
self.health(id)
|
||||
.is_some_and(|h| h != HealthState::ExternalControl)
|
||||
.is_none_or(|h| h != HealthState::ExternalControl)
|
||||
}
|
||||
}
|
||||
|
||||
@ -717,7 +717,7 @@ mod tests {
|
||||
|
||||
impl IsChildCommandable for IsCommandableMock {
|
||||
fn is_commandable(&self, id: ComponentId) -> bool {
|
||||
self.commandable_map.get(&id).copied().unwrap_or(false)
|
||||
self.commandable_map.get(&id).copied().unwrap_or(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user