Skip to content

Commit

Permalink
fix: fix test_updates
Browse files Browse the repository at this point in the history
  • Loading branch information
edytapawlak committed Jan 29, 2025
1 parent fe07534 commit 166c281
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion keriox_tests/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ impl AsyncTestContext for InfrastructureContext {
}

async fn teardown(self) {
// Perform any teardown you wish.
}
}

Expand Down
5 changes: 4 additions & 1 deletion keriox_tests/tests/query_updates.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::sync::Arc;
use std::{sync::Arc, time::Duration};

use async_std::task::sleep;
use keri_controller::{
config::ControllerConfig, controller::Controller, error::ControllerError,
identifier::query::QueryResponse, BasicPrefix, CryptoBox, EndRole, IdentifierPrefix,
Expand Down Expand Up @@ -174,6 +175,7 @@ async fn test_updates(ctx: &mut InfrastructureContext) -> Result<(), ControllerE
.await;
// Watcher might need some time to find KEL. Ask about it until it's ready.
while !errors.is_empty() {
sleep(Duration::from_millis(500)).await;
(response, errors) = verifying_identifier
.finalize_query(queries_and_signatures.clone())
.await;
Expand Down Expand Up @@ -262,6 +264,7 @@ async fn test_updates(ctx: &mut InfrastructureContext) -> Result<(), ControllerE

// Watcher might need some time to find KEL. Ask about it until it's ready.
while !errors.is_empty() {
sleep(Duration::from_millis(500)).await;
(response, errors) = verifying_identifier
.finalize_query(queries_and_signatures.clone())
.await;
Expand Down

0 comments on commit 166c281

Please # to comment.