mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 11:16:45 -04:00
Fix user_manager test by adding mismatched return types.
Also add a note in failing argument length test about which method we are checking for easier finding the problems.
This commit is contained in:
parent
88ce0ee123
commit
9e55f946f3
1 changed files with 11 additions and 5 deletions
|
@ -144,15 +144,15 @@ impl SteamOSManagerUser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn update_bios(&self) -> zbus::fdo::Result<()> {
|
async fn update_bios(&self) -> zbus::fdo::Result<zbus::zvariant::OwnedObjectPath> {
|
||||||
method!(self, "UpdateBios")
|
method!(self, "UpdateBios")
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn update_dock(&self) -> zbus::fdo::Result<()> {
|
async fn update_dock(&self) -> zbus::fdo::Result<zbus::zvariant::OwnedObjectPath> {
|
||||||
method!(self, "UpdateDock")
|
method!(self, "UpdateDock")
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn trim_devices(&self) -> zbus::fdo::Result<()> {
|
async fn trim_devices(&self) -> zbus::fdo::Result<zbus::zvariant::OwnedObjectPath> {
|
||||||
method!(self, "TrimDevices")
|
method!(self, "TrimDevices")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ impl SteamOSManagerUser {
|
||||||
device: &str,
|
device: &str,
|
||||||
label: &str,
|
label: &str,
|
||||||
validate: bool,
|
validate: bool,
|
||||||
) -> zbus::fdo::Result<()> {
|
) -> zbus::fdo::Result<zbus::zvariant::OwnedObjectPath> {
|
||||||
method!(self, "FormatDevice", device, label, validate)
|
method!(self, "FormatDevice", device, label, validate)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -351,7 +351,13 @@ mod test {
|
||||||
let remote_method = remote_methods.get(*key).expect(key);
|
let remote_method = remote_methods.get(*key).expect(key);
|
||||||
|
|
||||||
assert_eq!(local_method.name(), remote_method.name());
|
assert_eq!(local_method.name(), remote_method.name());
|
||||||
assert_eq!(local_method.args().len(), remote_method.args().len());
|
assert_eq!(
|
||||||
|
local_method.args().len(),
|
||||||
|
remote_method.args().len(),
|
||||||
|
"Testing {:?} against {:?}",
|
||||||
|
local_method,
|
||||||
|
remote_method
|
||||||
|
);
|
||||||
for (local_arg, remote_arg) in
|
for (local_arg, remote_arg) in
|
||||||
zip(local_method.args().iter(), remote_method.args().iter())
|
zip(local_method.args().iter(), remote_method.args().iter())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue