Skip to content

Commit 7e320ab

Browse files
authored
Merge pull request #316 from zeenix/test-fixes
✅ 2 small fixes/improvements to tests
2 parents 2dafa43 + 00b610d commit 7e320ab

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/fdo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use zbus::{
2020

2121
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
2222
#[instrument]
23-
#[timeout(15000)]
23+
#[timeout(30000)]
2424
async fn name_ownership_changes() {
2525
busd::tracing_subscriber::init();
2626

@@ -216,7 +216,7 @@ async fn name_ownership_changes_client(address: &str, tx: Sender<()>) -> anyhow:
216216

217217
let mut unique_name_signaled = false;
218218
let mut well_known_name_signaled = false;
219-
while !unique_name_signaled && !well_known_name_signaled {
219+
while !unique_name_signaled || !well_known_name_signaled {
220220
let changed = name_changed_stream.next().await.unwrap();
221221
if *changed.args()?.name() == *conn2_unique_name {
222222
ensure!(

tests/greet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use zbus::{
2323

2424
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
2525
#[instrument]
26-
#[timeout(15000)]
26+
#[timeout(30000)]
2727
async fn greet() {
2828
busd::tracing_subscriber::init();
2929

tests/monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use zbus::{
1515

1616
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
1717
#[instrument]
18-
#[timeout(15000)]
18+
#[timeout(30000)]
1919
async fn become_monitor() {
2020
busd::tracing_subscriber::init();
2121

tests/multiple_conns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use zbus::connection;
1313

1414
#[tokio::test(flavor = "multi_thread", worker_threads = 8)]
1515
#[instrument]
16-
#[timeout(15000)]
16+
#[timeout(30000)]
1717
async fn multi_conenct() {
1818
busd::tracing_subscriber::init();
1919

0 commit comments

Comments
 (0)