File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import io.ktor.http.HttpStatusCode
1616import kotlinx.serialization.json.json
1717import runBlocking
1818import shouldEqual
19+ import java.time.LocalDateTime
20+ import java.time.ZoneId
1921import kotlin.test.AfterTest
2022import kotlin.test.Test
2123
@@ -27,12 +29,13 @@ internal class TestSuiteInsights {
2729 private val index = clientAdmin1.initIndex(indexName)
2830 private val userToken = " bar" .toUserToken()
2931 private val eventName = " eventName" .toEventName()
30- private val objectIDs = listOf (" obj1 " .toObjectID(), " obj2 " .toObjectID())
32+ private val objectIDs = listOf (" one " .toObjectID(), " two " .toObjectID())
3133 private val eventClick = InsightsEvent .Click (
3234 eventName = " foo" .toEventName(),
3335 userToken = userToken,
3436 indexName = indexName,
35- resources = InsightsEvent .Resources .ObjectIDs (objectIDs)
37+ resources = InsightsEvent .Resources .ObjectIDs (objectIDs),
38+ timestamp = LocalDateTime .now().atZone(ZoneId .systemDefault()).minusDays(2 ).toInstant().toEpochMilli()
3639 )
3740 private val user = clientInsights.User (userToken)
3841 private val attribute = " dsl/filtering" .toAttribute()
You can’t perform that action at this time.
0 commit comments