Skip to content

Conversation

@anarthal
Copy link
Collaborator

Splits test_conn_health_check into a test to verify that the health checker works and another to verify that MONITOR is handled correctly.
Tests no longer wait or use CLIENT PAUSE

@anarthal
Copy link
Collaborator Author

This is an intent to make test_conn_health_check more workable. It now uses a simple BLPOP that will wait forever and cause the connection to be killed. Runtime is down from 30s to 1s.

Since this test was covering MONITOR, I've added a test that just does this. This test runs almost instantly.

@anarthal anarthal requested a review from mzimbres September 26, 2025 17:52

namespace {

struct push_callback {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad this is being removed, it is a mess.


// Verifies that using the MONITOR command works properly.
// Opens a connection, issues a MONITOR, issues some commands to
// generate some traffic, and waits for several MONITOR messages to arrive.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Opens a connection, issues a MONITOR, issues some commands to
// generate some traffic, and waits for several MONITOR messages to arrive.

I thought it was not allowed to issue commands on the same connection one MONITOR mode is entered. Perhaps this was only a restriction in RESP2 since it does not support server pushes.

@anarthal anarthal merged commit beab3f6 into boostorg:develop Sep 27, 2025
17 checks passed
@anarthal anarthal deleted the feature/rework-conn-health-check-test branch September 27, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants