LLM-18992 [ai-next-edit] fix logs collection in inline completion tests

(cherry picked from commit d7d182d2228a1586f02560e2586dcc606b7541c4)

IJ-CR-183016

GitOrigin-RevId: 77fc9d3e0675c9095d93eb3e6681ce09bdbd4404
This commit is contained in:
Kirill.Karnaukhov
2025-11-19 11:41:59 +01:00
committed by intellij-monorepo-bot
parent 3140d68eb6
commit c82c8cb7d8

View File

@@ -19,8 +19,7 @@ import kotlin.test.assertTrue
@ApiStatus.Internal
object TestInlineCompletionLogs {
private fun getSessionLogs(events: List<LogEvent>): List<LogEvent> = events.filter {
it.group.id == InlineCompletionLogs.GROUP.id
it.event.id == InlineCompletionLogs.Session.SESSION_EVENT.eventId
it.group.id == InlineCompletionLogs.GROUP.id && it.event.id == InlineCompletionLogs.Session.SESSION_EVENT.eventId
}
/**