Skip to content

Commit ceb2536

Browse files
committed
test: no redetector for tests
1 parent 53131c1 commit ceb2536

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

marker/src/main/kotlin/spp/jetbrains/marker/source/info/EndpointDetector.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
package spp.jetbrains.marker.source.info
1818

19+
import com.intellij.openapi.application.ApplicationManager
1920
import com.intellij.openapi.diagnostic.logger
2021
import com.intellij.openapi.project.Project
2122
import com.intellij.openapi.util.Key
@@ -53,6 +54,12 @@ abstract class EndpointDetector<T : EndpointDetector.EndpointNameDeterminer>(val
5354
private val skywalkingMonitor by lazy { project.getUserData(SkywalkingMonitorService.KEY)!! }
5455

5556
init {
57+
if (!ApplicationManager.getApplication().isUnitTestMode) {
58+
setupRedetector()
59+
}
60+
}
61+
62+
private fun setupRedetector() {
5663
if (project.getUserData(REDETECTOR_SETUP) != true) {
5764
project.putUserData(REDETECTOR_SETUP, true)
5865
log.info("Setting up endpoint re-detector for project ${project.name}")

0 commit comments

Comments
 (0)