chore(clean up): remove unused imports, unnecessary object impls, concurrency/coroutine issues, trailing commas, etc.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import com.correx.core.events.events.EventMetadata
|
||||
import com.correx.core.events.events.EventPayload
|
||||
import com.correx.core.events.events.NewEvent
|
||||
import com.correx.core.events.events.SessionPausedEvent
|
||||
import com.correx.core.events.events.SessionResumedEvent
|
||||
@@ -20,7 +19,7 @@ class SessionReplayDeterminismTest {
|
||||
|
||||
private fun build(store: EventStore) = DefaultEventReplayer(
|
||||
store,
|
||||
SessionProjector(DefaultSessionReducer())
|
||||
SessionProjector(DefaultSessionReducer()),
|
||||
)
|
||||
|
||||
@Test
|
||||
@@ -30,16 +29,16 @@ class SessionReplayDeterminismTest {
|
||||
val store1 = InMemoryEventStore()
|
||||
val store2 = InMemoryEventStore()
|
||||
|
||||
val events = mapOf<EventMetadata, EventPayload>(
|
||||
val events = mapOf(
|
||||
EventMetadata(EventId("start"), sessionId, Clock.System.now(), 1, null, null) to SessionStartedEvent(
|
||||
sessionId
|
||||
sessionId,
|
||||
),
|
||||
EventMetadata(EventId("paused"), sessionId, Clock.System.now(), 1, null, null) to SessionPausedEvent(
|
||||
sessionId
|
||||
sessionId,
|
||||
),
|
||||
EventMetadata(EventId("resumed"), sessionId, Clock.System.now(), 1, null, null) to SessionResumedEvent(
|
||||
sessionId
|
||||
)
|
||||
sessionId,
|
||||
),
|
||||
)
|
||||
|
||||
events.forEach { (meta, payload) ->
|
||||
|
||||
Reference in New Issue
Block a user