mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-14 11:40:38 +00:00
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:
committed by
Alex Chi Z
parent
7dd71f4126
commit
90f447b79d
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user