Skip to content

Commit

Permalink
Updating to tokio 1.23 and updating unit tests.
Browse files Browse the repository at this point in the history
Closes #2571
  • Loading branch information
fulmicoton committed Dec 14, 2022
1 parent d1d59fb commit e55d89e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
6 changes: 3 additions & 3 deletions quickwit/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion quickwit/Cargo.toml
Expand Up @@ -155,7 +155,7 @@ thousands = "0.2.0"
tikv-jemalloc-ctl = "0.5"
tikv-jemallocator = "0.5"
time = { version = "0.3.17", features = ["std", "formatting", "macros"] }
tokio = { version = "^1.22", features = ["full", "test-util"] }
tokio = { version = "1.23", features = ["full"] }
tokio-stream = { version = "0.1", features = ["sync"] }
tokio-util = { version = "0.7", features = ["full"] }
toml = "0.5.9"
Expand Down
4 changes: 4 additions & 0 deletions quickwit/quickwit-actors/src/mailbox.rs
Expand Up @@ -421,6 +421,10 @@ mod tests {
fn queue_capacity(&self) -> QueueCapacity {
QueueCapacity::Bounded(0)
}

fn yield_after_each_message(&self) -> bool {
false
}
}

use async_trait::async_trait;
Expand Down
4 changes: 4 additions & 0 deletions quickwit/quickwit-actors/src/tests.rs
Expand Up @@ -513,6 +513,10 @@ struct Adder(u64);
impl Actor for Adder {
type ObservableState = u64;

fn yield_after_each_message(&self) -> bool {
false
}

fn observable_state(&self) -> Self::ObservableState {
self.0
}
Expand Down
2 changes: 1 addition & 1 deletion quickwit/quickwit-storage/Cargo.toml
Expand Up @@ -32,7 +32,7 @@ serde_json = { workspace = true }
tantivy = { workspace = true }
tempfile = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tokio = { workspace = true, features = ["test-util"] }
tokio-stream = { workspace = true }
tokio-util = { workspace = true }
tracing = { workspace = true }
Expand Down

0 comments on commit e55d89e

Please sign in to comment.