Skip to content

Commit eed67c5

Browse files
committed
test: logging
1 parent c44213d commit eed67c5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

boot/src/test/kotlin/integration/meter/MeterGaugeTest.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,13 @@ class MeterGaugeTest : ProbeIntegrationTest() {
8686
val subscriptionId = viewService.addLiveView(
8787
LiveView(
8888
entityIds = mutableSetOf(liveMeter.id!!),
89-
viewConfig = LiveViewConfig(
90-
"test",
91-
listOf(liveMeter.id!!)
92-
)
89+
viewConfig = LiveViewConfig("test", listOf(liveMeter.id!!))
9390
)
9491
).await().subscriptionId!!
9592

9693
val testContext = VertxTestContext()
9794
getLiveViewSubscription(subscriptionId).handler {
95+
log.info("Received live view event: $it")
9896
val liveViewEvent = LiveViewEvent(it.body())
9997
val rawMetrics = JsonObject(liveViewEvent.metricsData)
10098
testContext.verify {
@@ -153,15 +151,13 @@ class MeterGaugeTest : ProbeIntegrationTest() {
153151
val subscriptionId = viewService.addLiveView(
154152
LiveView(
155153
entityIds = mutableSetOf(liveMeter.id!!),
156-
viewConfig = LiveViewConfig(
157-
"test",
158-
listOf(liveMeter.id!!)
159-
)
154+
viewConfig = LiveViewConfig("test", listOf(liveMeter.id!!))
160155
)
161156
).await().subscriptionId!!
162157

163158
val testContext = VertxTestContext()
164159
getLiveViewSubscription(subscriptionId).handler {
160+
log.info("Received live view event: ${it.body()}")
165161
val liveViewEvent = LiveViewEvent(it.body())
166162
val rawMetrics = JsonObject(liveViewEvent.metricsData)
167163
testContext.verify {

0 commit comments

Comments
 (0)