File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
common/src/test/kotlin/spp/probe Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717package spp.probe
1818
1919import org.junit.jupiter.api.Assertions.assertEquals
20+ import org.junit.jupiter.api.Assertions.assertNotNull
2021import org.junit.jupiter.api.Test
2122
2223class ProbeConfigurationTest {
@@ -26,8 +27,8 @@ class ProbeConfigurationTest {
2627 val configFile = javaClass.classLoader.getResource(" spp-probe-env.yml" )!! .file
2728 val config = ProbeConfiguration .loadConfigProperties(configFile)
2829 config.getJsonObject(" spp" ).let {
29- assertEquals( " 127.0.0.1 " , it.getString(" platform_host" ))
30- assertEquals( 1234 , it.getString(" platform_port" ).toInt())
30+ assertNotNull( it.getString(" platform_host" ))
31+ assertNotNull( it.getString(" platform_port" ).toInt())
3132 }
3233 config.getJsonObject(" skywalking" ).let {
3334 assertEquals(" INFO" , it.getJsonObject(" logging" ).getString(" level" ))
You can’t perform that action at this time.
0 commit comments