Skip to content

Commit

Permalink
fix(tests): fix import OnceLock instead LazyLock
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Oct 10, 2024
1 parent f0626b6 commit a8153fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integ_tests/update_tests.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::anyhow;
use assert_matches::assert_matches;
use futures_util::{future, future::join_all, StreamExt};
use std::sync::OnceLock;
use std::sync::LazyLock;
use std::{
sync::{
atomic::{AtomicBool, AtomicUsize, Ordering},
Expand Down Expand Up @@ -957,7 +957,7 @@ async fn worker_restarted_in_middle_of_update() {
let mut worker = starter.worker().await;
let client = starter.get_client().await;

static BARR: OnceLock<Barrier> = Lazy::new(|| Barrier::new(2));
static BARR: LazyLock<Barrier> = LazyLock::new(|| Barrier::new(2));
static ACT_RAN: AtomicBool = AtomicBool::new(false);
worker.register_wf(wf_name.to_owned(), |ctx: WfContext| async move {
ctx.update_handler(
Expand Down

0 comments on commit a8153fb

Please sign in to comment.