Skip to content

Commit

Permalink
fixed failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-schmidt committed Nov 18, 2024
1 parent 596d7f7 commit 678d67d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class ObjectStoragePathFactory(
val FILENAME_VARIABLES =
listOf(
FileVariable("date", """\d{4}_\d{2}_\d{2}""") { DATE_FORMATTER.format(it.time) },
FileVariable("timestamp", """\d+""") { System.currentTimeMillis().toString() },
FileVariable("timestamp", """\d+""") { it.time.toEpochMilli().toString() },
FileVariable("part_number", """\d+""") {
it.partNumber?.toString()
?: throw IllegalArgumentException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class ObjectStorageDestinationStateTest {
@Test
fun testRecoveringFromMetadata(d: Dependencies) = runTest {
val genIdKey = ObjectStorageDestinationState.METADATA_GENERATION_ID_KEY
val prefix = d.pathFactory.prefix
val prefix =
"${d.pathFactory.prefix}/${stream1.descriptor.namespace}/${stream1.descriptor.name}/"
val generations =
listOf(
Triple(0, "$prefix/key1-0", 0L),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data:
connectorSubtype: file
connectorType: destination
definitionId: d6116991-e809-4c7c-ae09-c64712df5b66
dockerImageTag: 0.2.2
dockerImageTag: 0.2.3
dockerRepository: airbyte/destination-s3-v2
githubIssueLabel: destination-s3-v2
icon: s3.svg
Expand Down

0 comments on commit 678d67d

Please sign in to comment.