Skip to content

Commit 4ac6152

Browse files
committed
test: line after
1 parent 076cc85 commit 4ac6152

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

boot/src/test/kotlin/integration/breakpoint/LineNumberTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class LineNumberTest : ProbeIntegrationTest() {
3333

3434
private fun doTest() {
3535
val a = 1
36+
val b = "test"
3637
}
3738

3839
@Test
@@ -45,10 +46,10 @@ class LineNumberTest : ProbeIntegrationTest() {
4546
if (event.eventType == LiveInstrumentEventType.BREAKPOINT_HIT) {
4647
val item = event as LiveBreakpointHit
4748
val vars = item.stackTrace.first().variables
48-
assertEquals(2, vars.size)
49+
assertEquals(3, vars.size)
4950

50-
assertEquals(1, vars.first { it.name == "a" }.value)
5151
assertEquals(35, vars.first { it.name == "a" }.lineNumber)
52+
assertEquals(36, vars.first { it.name == "b" }.lineNumber)
5253

5354
testContext.completeNow()
5455
}
@@ -60,7 +61,7 @@ class LineNumberTest : ProbeIntegrationTest() {
6061
LiveBreakpoint(
6162
location = LiveSourceLocation(
6263
source = LineNumberTest::class.java.name,
63-
line = 36,
64+
line = 37,
6465
service = "spp-test-probe"
6566
),
6667
applyImmediately = true,

0 commit comments

Comments
 (0)