Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 15, 2024
1 parent 8ca69fa commit 616f9ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all --features=ntex/tokio -- --nocapture
args: --all --features=ntex/tokio -- --nocapture --test test_handle_incoming_after_disconnect
3 changes: 3 additions & 0 deletions tests/test_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@ async fn handle_or_drop_publish_after_disconnect(
max_qos: QoS,
handle_qos_after_disconnect: Option<QoS>,
) -> bool {
std::env::set_var("RUST_LOG", "trace");
let _ = env_logger::try_init();

let publish = Arc::new(AtomicBool::new(false));
let publish2 = publish.clone();
let disconnect = Arc::new(AtomicBool::new(false));
Expand Down
2 changes: 0 additions & 2 deletions tests/test_server_v5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,6 @@ async fn handle_or_drop_publish_after_disconnect(
max_qos: QoS,
handle_qos_after_disconnect: Option<QoS>,
) -> bool {
let _ = env_logger::try_init();

let publish = Arc::new(AtomicBool::new(false));
let publish2 = publish.clone();
let disconnect = Arc::new(AtomicBool::new(false));
Expand Down

0 comments on commit 616f9ce

Please sign in to comment.