Skip to content

Commit

Permalink
Fix a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Jul 25, 2023
1 parent e524ced commit 65e0ecb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/server/tests/services/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ fn publish_response_subscription() {
// Create subscription
let subscription_id = create_subscription(server_state.clone(), session.clone(), &ss);

let now = Utc::now();

// Create a monitored item
create_monitored_item(
subscription_id,
Expand All @@ -177,6 +175,8 @@ fn publish_response_subscription() {
&mis,
);

let now = Utc::now();

// Put the subscription into normal state
{
let mut session = trace_write_lock!(session);
Expand All @@ -191,6 +191,7 @@ fn publish_response_subscription() {
let notification_message = {
let request_id = 1001;
let request = publish_request(None);

// Tick subscriptions to trigger a change
let _ = ss.async_publish(
&now,
Expand Down

0 comments on commit 65e0ecb

Please sign in to comment.