mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-05 06:00:30 -04:00
power: Make test::setup return a Result
This commit is contained in:
parent
0b3a8138e1
commit
53754680c1
3 changed files with 19 additions and 20 deletions
|
@ -454,7 +454,7 @@ mod test {
|
|||
#[tokio::test]
|
||||
async fn gpu_performance_level() {
|
||||
let test = start().await.expect("start");
|
||||
power::test::setup().await;
|
||||
power::test::setup().await.expect("setup");
|
||||
|
||||
let name = test.connection.unique_name().unwrap();
|
||||
let proxy = GpuPerformanceLevelProxy::new(&test.connection, name.clone())
|
||||
|
@ -489,7 +489,7 @@ mod test {
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
power::test::setup().await;
|
||||
power::test::setup().await.expect("setup");
|
||||
proxy.set_manual_gpu_clock(200).await.expect("proxy_set");
|
||||
assert_eq!(read_clocks().await.unwrap(), format_clocks(200));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue