From eefb4b9298336bf44f750ed7d8f8f9fe8297cc24 Mon Sep 17 00:00:00 2001 From: Edward Gao Date: Wed, 14 Feb 2024 16:14:22 -0800 Subject: [PATCH] more explicit test --- .../integrations/destination/s3/csv/S3CsvWriterTest.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/airbyte-cdk/java/airbyte-cdk/s3-destinations/src/test/java/io/airbyte/cdk/integrations/destination/s3/csv/S3CsvWriterTest.java b/airbyte-cdk/java/airbyte-cdk/s3-destinations/src/test/java/io/airbyte/cdk/integrations/destination/s3/csv/S3CsvWriterTest.java index bee325234d2c..7cf8195d5baa 100644 --- a/airbyte-cdk/java/airbyte-cdk/s3-destinations/src/test/java/io/airbyte/cdk/integrations/destination/s3/csv/S3CsvWriterTest.java +++ b/airbyte-cdk/java/airbyte-cdk/s3-destinations/src/test/java/io/airbyte/cdk/integrations/destination/s3/csv/S3CsvWriterTest.java @@ -284,13 +284,10 @@ public void writesContentsCorrectly_when_stagingDatabaseConfig() throws IOExcept // carriage returns are required b/c RFC4180 requires it :( // Dynamically generate the timestamp because we generate in local time. assertEquals( - String.format( - """ - f6767f7d-ce1e-45cc-92db-2ad3dfdd088e,"{""foo"":73}",%s\r - 2b95a13f-d54f-4370-a712-1c7bf2716190,"{""bar"":84}",%s\r + """ + f6767f7d-ce1e-45cc-92db-2ad3dfdd088e,"{""foo"":73}",1970-01-01T00:00:01.234Z\r + 2b95a13f-d54f-4370-a712-1c7bf2716190,"{""bar"":84}",1970-01-01T00:00:02.345Z\r """, - Instant.ofEpochMilli(1234), - Instant.ofEpochMilli(2345)), outputStreams.get(0).toString(StandardCharsets.UTF_8)); }