Skip to content

Commit

Permalink
♻️ use random port
Browse files Browse the repository at this point in the history
  • Loading branch information
tackyu committed Aug 3, 2024
1 parent 95a959b commit 41a86f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
import org.springframework.boot.test.mock.mockito.MockBean;
import software.amazon.awssdk.services.s3.presigner.S3Presigner;
import software.amazon.awssdk.services.s3.presigner.model.PresignedPutObjectRequest;
import software.amazon.awssdk.services.s3.presigner.model.PutObjectPresignRequest;

@SpringBootTest
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
class S3ClientServiceTest {

private static final String FILE_NAME = "testImage.jpg";
Expand Down

0 comments on commit 41a86f2

Please sign in to comment.