From 0319375d444b1b35129f7c527688063f4a6a7a0d Mon Sep 17 00:00:00 2001 From: Vinod Kumar Date: Thu, 23 Jul 2026 11:13:21 +0530 Subject: [PATCH] test: canonicalize S3 inbound adapter temp directory --- .../cloud/s3/integration/S3InboundChannelAdapterTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-aws-s3/src/test/java/io/awspring/cloud/s3/integration/S3InboundChannelAdapterTests.java b/spring-cloud-aws-s3/src/test/java/io/awspring/cloud/s3/integration/S3InboundChannelAdapterTests.java index c5e4bbdbc..2e682dec1 100644 --- a/spring-cloud-aws-s3/src/test/java/io/awspring/cloud/s3/integration/S3InboundChannelAdapterTests.java +++ b/spring-cloud-aws-s3/src/test/java/io/awspring/cloud/s3/integration/S3InboundChannelAdapterTests.java @@ -71,13 +71,13 @@ class S3InboundChannelAdapterTests implements LocalstackContainerTest { private PollableChannel s3FilesChannel; @BeforeAll - static void setup() { + static void setup() throws IOException { S3 = LocalstackContainerTest.s3Client(); S3.createBucket(request -> request.bucket(S3_BUCKET)); S3.putObject(request -> request.bucket(S3_BUCKET).key("subdir/a.test"), RequestBody.fromString("Hello")); S3.putObject(request -> request.bucket(S3_BUCKET).key("subdir/b.test"), RequestBody.fromString("Bye")); - LOCAL_FOLDER = TEMPORARY_FOLDER.resolve("local").toFile(); + LOCAL_FOLDER = TEMPORARY_FOLDER.toRealPath().resolve("local").toFile(); } @Test