-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky pageserver restarts in tests (#2261)
- Loading branch information
1 parent
3414fea
commit e9a3499
Showing
3 changed files
with
46 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""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 i in range(3): | ||
env.pageserver.stop() | ||
env.pageserver.start() | ||
|
||
for i in range(3): | ||
env.safekeepers[0].stop() | ||
env.safekeepers[0].start() |