Skip to content

Commit

Permalink
Integration tests: agent loading fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorbll committed May 12, 2020
1 parent 9cf2c51 commit 8b948f9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,19 @@ class UIEVENTLOOP(
when (type) {
is WsRoutes.Agents -> glob.run {
send(GroupedAgentsDto.serializer() parse content)
println("Processed $type")
}
is WsRoutes.Agent -> cs.getValue(type.agentId).agentChannel.run {
send(response?.run { AgentInfoDto.serializer() parse content })
println("Processed $type")
}
is WsRoutes.AgentBuilds -> cs.getValue(type.agentId).buildsChannel.run {
send(response?.run { BuildSummaryDto.serializer().list parse content })
println("Processed $type")
}
is WsRoutes.AgentPlugins -> cs.getValue(type.agentId).agentPluginInfoChannel.run {
send(response?.run { PluginDto.serializer().set parse content })
println("Processed $type")
}
}
}
Expand All @@ -95,7 +99,6 @@ class UIEVENTLOOP(
else -> throw RuntimeException(" read not FRAME.TEXT frame.")
}
}

}
}

Expand Down

0 comments on commit 8b948f9

Please sign in to comment.