From 48069f68bbd31a74839ce55969a6e0abb252a3c0 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Wed, 24 Jul 2024 12:39:59 +0000 Subject: [PATCH] chore: forgotten pyfmt --- .../regress/test_timeline_detach_ancestor.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test_runner/regress/test_timeline_detach_ancestor.py b/test_runner/regress/test_timeline_detach_ancestor.py index d1c29ae2a7..44aa0626bd 100644 --- a/test_runner/regress/test_timeline_detach_ancestor.py +++ b/test_runner/regress/test_timeline_detach_ancestor.py @@ -1049,9 +1049,7 @@ def test_sharded_tad_interleaved_after_partial_success(neon_env_builder: NeonEnv victim_http.configure_failpoints((pausepoint, "off")) -def test_retried_detach_ancestor_after_failed_reparenting( - neon_env_builder: NeonEnvBuilder -): +def test_retried_detach_ancestor_after_failed_reparenting(neon_env_builder: NeonEnvBuilder): """ Using a failpoint, force the completion step of timeline ancestor detach to fail after reparenting a single timeline. Retrying should try reparenting until all reparentings are done, all the time blocking gc. @@ -1111,7 +1109,10 @@ def test_retried_detach_ancestor_after_failed_reparenting( for nth_round in range(len(timelines) - 1): log.info(f"{nth_round} round") - with pytest.raises(PageserverApiException, match=".*failed to reparent all candidate timelines, please retry") as exc: + with pytest.raises( + PageserverApiException, + match=".*failed to reparent all candidate timelines, please retry", + ) as exc: http.detach_ancestor(env.initial_tenant, detached) assert exc.value.status_code == 500 @@ -1168,7 +1169,9 @@ def test_retried_detach_ancestor_after_failed_reparenting( http.configure_failpoints(("timeline-detach-ancestor::complete_before_uploading", "return")) # almost final round, the failpoint is hit no longer, and everything completes - with pytest.raises(PageserverApiException, match=".* timeline-detach-ancestor::complete_before_uploading") as exc: + with pytest.raises( + PageserverApiException, match=".* timeline-detach-ancestor::complete_before_uploading" + ) as exc: http.detach_ancestor(env.initial_tenant, detached) assert exc.value.status_code == 500 _, offset = env.pageserver.assert_log_contains(