Skip to content

Commit

Permalink
test: revert debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertt committed Jul 20, 2024
1 parent 0889351 commit 945b820
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ fn test_7_empty_gateway_can_get_messages_until_next_keep_alive_check_if_removed_
// check that gateway can receive the messages
helpers::assert_gateway_has_messages(send_messages_count);

println!("1: send_messages_count: {}", send_messages_count);

// wait for the ack interval to fire
get_test_env().advance_canister_time_ms(DEFAULT_TEST_SEND_ACK_INTERVAL_MS + 1000);
get_test_env().advance_canister_time_ms(DEFAULT_TEST_SEND_ACK_INTERVAL_MS);

// disconnect the client and check that gateway can still receive the messages
call_ws_close_with_panic(
Expand All @@ -290,26 +288,20 @@ fn test_7_empty_gateway_can_get_messages_until_next_keep_alive_check_if_removed_
// check that gateway can still receive the messages, even after the ack interval has fired
helpers::assert_gateway_has_messages(expected_messages_len);

println!("2: send_messages_count: {}", send_messages_count);

// wait for the keep alive timeout to expire
get_test_env().advance_canister_time_ms(CLIENT_KEEP_ALIVE_TIMEOUT_MS);

// the gateway can still receive the messages, because it was emptied
// less than an ack interval ago
helpers::assert_gateway_has_messages(expected_messages_len);

println!("3: send_messages_count: {}", send_messages_count);

// wait for next ack interval to expire
get_test_env().advance_canister_time_ms(DEFAULT_TEST_SEND_ACK_INTERVAL_MS);

// the gateway can still receive the messages, because empty expired gateways
// are removed only in the keep alive timeout callback
helpers::assert_gateway_has_messages(expected_messages_len);

println!("4: send_messages_count: {}", send_messages_count);

// wait for the keep alive timeout to expire
get_test_env().advance_canister_time_ms(CLIENT_KEEP_ALIVE_TIMEOUT_MS);

Expand Down

0 comments on commit 945b820

Please sign in to comment.