test: limit test_layer_download_timeouted to MOCK_S3 (#8331)

Requests against REAL_S3 on CI can consistently take longer than 1s;
testing the short timeouts against it made no sense in hindsight, as
MOCK_S3 works just as well.

evidence:
https://neon-github-public-dev.s3.amazonaws.com/reports/pr-8229/9857994025/index.html#suites/b97efae3a617afb71cb8142f5afa5224/6828a50921660a32
This commit is contained in:
Joonas Koivunen
2024-07-11 22:03:35 +03:00
committed by Alex Chi Z
parent 7dd71f4126
commit 90f447b79d

View File

@@ -764,7 +764,9 @@ def test_layer_download_timeouted(neon_env_builder: NeonEnvBuilder):
"""
Pause using a pausable_failpoint longer than the client timeout to simulate the timeout happening.
"""
neon_env_builder.enable_pageserver_remote_storage(s3_storage())
# running this test is not reliable against REAL_S3, because operations can
# take longer than 1s we want to use as a timeout
neon_env_builder.enable_pageserver_remote_storage(RemoteStorageKind.MOCK_S3)
assert isinstance(neon_env_builder.pageserver_remote_storage, S3Storage)
neon_env_builder.pageserver_remote_storage.custom_timeout = "1s"