Skip to content

Commit

Permalink
minor test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Nov 29, 2024
1 parent 362e543 commit fa031e1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,9 @@ class DynamoDBTimestampOffsetProjectionSpec
val projectionId = genRandomProjectionId()

val allEnvelopes = createEnvelopes(pid1, 6) ++ createEnvelopes(pid2, 3)
val skipPid1SeqNrs = Set(3L, 4L, 5L)
val envelopes = allEnvelopes.filterNot { env =>
(env.persistenceId == pid1 && (env.sequenceNr == 3 || env.sequenceNr == 4 || env.sequenceNr == 5)) ||
(env.persistenceId == pid1 && skipPid1SeqNrs(env.sequenceNr)) ||
(env.persistenceId == pid2 && (env.sequenceNr == 1))
}

Expand Down Expand Up @@ -1572,8 +1573,9 @@ class DynamoDBTimestampOffsetProjectionSpec
val projectionId = genRandomProjectionId()

val allEnvelopes = createEnvelopes(pid1, 10) ++ createEnvelopes(pid2, 3)
val skipPid1SeqNrs = Set(3L, 4L, 5L, 7L, 9L)
val envelopes = allEnvelopes.filterNot { env =>
(env.persistenceId == pid1 && (env.sequenceNr == 3 || env.sequenceNr == 4 || env.sequenceNr == 5 || env.sequenceNr == 7 || env.sequenceNr == 9)) ||
(env.persistenceId == pid1 && skipPid1SeqNrs(env.sequenceNr)) ||
(env.persistenceId == pid2 && (env.sequenceNr == 1))
}

Expand Down Expand Up @@ -1837,8 +1839,9 @@ class DynamoDBTimestampOffsetProjectionSpec
val projectionId = genRandomProjectionId()

val allEnvelopes = createEnvelopes(pid1, 6) ++ createEnvelopes(pid2, 3)
val skipPid1SeqNrs = Set(3L, 4L, 5L)
val envelopes = allEnvelopes.filterNot { env =>
(env.persistenceId == pid1 && (env.sequenceNr == 3 || env.sequenceNr == 4 || env.sequenceNr == 5)) ||
(env.persistenceId == pid1 && skipPid1SeqNrs(env.sequenceNr)) ||
(env.persistenceId == pid2 && (env.sequenceNr == 1))
}

Expand Down

0 comments on commit fa031e1

Please sign in to comment.