| 191 | class S3TestMixin : public AwsTestMixin { |
| 192 | public: |
| 193 | void SetUp() override { |
| 194 | AwsTestMixin::SetUp(); |
| 195 | |
| 196 | // Starting the server may fail, for example if the generated port number |
| 197 | // was "stolen" by another process. Run a dummy S3 operation to make sure it |
| 198 | // is running, otherwise retry a number of times. |
| 199 | Status connect_status; |
| 200 | int retries = kNumServerRetries; |
| 201 | do { |
| 202 | ASSERT_OK(InitServerAndClient()); |
| 203 | connect_status = OutcomeToStatus("ListBuckets", client_->ListBuckets()); |
| 204 | } while (!connect_status.ok() && --retries > 0); |
| 205 | ASSERT_OK(connect_status); |
| 206 | } |
| 207 | |
| 208 | void TearDown() override { |
| 209 | // Aws::S3::S3Client destruction relies on AWS SDK, so it must be |
nothing calls this directly
no test coverage detected