Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 20, 2024
1 parent 66113da commit 2277ddc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ impl TestContext {
let mut context_names = CONTEXT_NAMES.write().unwrap();
context_names.insert(id, name);
}
let ctx = Context::new(&dbfile, id, Events::new(), StockStrings::new())
let events = Events::new();
let evtracker_receiver = events.get_emitter();
let ctx = Context::new(&dbfile, id, events, StockStrings::new())
.await
.expect("failed to create context");

Expand All @@ -354,8 +356,6 @@ impl TestContext {
log_sink.subscribe(ctx.get_event_emitter());
};

let evtracker_receiver = ctx.get_event_emitter();

ctx.set_config(Config::SkipStartMessages, Some("1"))
.await
.unwrap();
Expand Down

0 comments on commit 2277ddc

Please sign in to comment.