Skip to content

Commit

Permalink
Explain
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Oct 8, 2024
1 parent 2c8b76d commit 368a425
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/test_gateway.c
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,8 @@ TEST_CASE(query, close_while_in_flight, NULL)
return MUNIT_OK;
}

/* A non-leader serves readonly QUERY requests for a database that was opened
* with the ALLOW_STALE flag. */
TEST_CASE(query, allow_stale, NULL)
{
(void)params;
Expand All @@ -1757,6 +1759,8 @@ TEST_CASE(query, allow_stale, NULL)
return MUNIT_OK;
}

/* A non-leader will not serve a QUERY request that modifies the database, even
* if opened with the ALLOW_STALE flag. */
TEST_CASE(query, allow_stale_modifying, NULL)
{
(void)params;
Expand Down Expand Up @@ -2429,6 +2433,8 @@ TEST_CASE(query_sql, nonemptyTail, NULL)
return MUNIT_OK;
}

/* A non-leader serves readonly QUERY_SQL requests for a database that was
* opened with the ALLOW_STALE flag. */
TEST_CASE(query_sql, allow_stale, NULL)
{
(void)params;
Expand All @@ -2453,6 +2459,8 @@ TEST_CASE(query_sql, allow_stale, NULL)
return MUNIT_OK;
}

/* A non-leader will not serve a QUERY_SQL request that modifies the database,
* even if opened with the ALLOW_STALE flag. */
TEST_CASE(query_sql, allow_stale_modifying, NULL)
{
(void)params;
Expand Down

0 comments on commit 368a425

Please sign in to comment.