mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-05 20:42:54 +00:00
Ruff has "B" class of lints, including B018 which will nag on useless expressions, related to #4719. Enable such lints and fix the existing issues. Most notably: - https://beta.ruff.rs/docs/rules/mutable-argument-default/ - https://beta.ruff.rs/docs/rules/assert-false/ --------- Co-authored-by: Alexander Bayandin <alexander@neon.tech>
18 lines
514 B
Python
18 lines
514 B
Python
"""Tests for the code in test fixtures"""
|
|
|
|
from fixtures.neon_fixtures import NeonEnvBuilder
|
|
|
|
|
|
# Test that pageserver and safekeeper can restart quickly.
|
|
# This is a regression test, see https://github.com/neondatabase/neon/issues/2247
|
|
def test_fixture_restart(neon_env_builder: NeonEnvBuilder):
|
|
env = neon_env_builder.init_start()
|
|
|
|
for _ in range(3):
|
|
env.pageserver.stop()
|
|
env.pageserver.start()
|
|
|
|
for _ in range(3):
|
|
env.safekeepers[0].stop()
|
|
env.safekeepers[0].start()
|