https://kotlinlang.org logo
#kotest
Title
# kotest
s

Sourabh Rawat

05/31/2021, 11:44 AM
I am using grpc spring server https://github.com/LogNet/grpc-spring-boot-starter/blob/master/grpc-spring-boot-st[…]/src/main/java/org/lognet/springboot/grpc/GRpcServerRunner.java along with Spring extension Seems like the server does not stop after test case is finished, leading to it getting reused for next test cases. 😕
s

sam

05/31/2021, 1:21 PM
It will start stop per spec by default perhaps. You can control it. I'm not on a pc but check the docs it will be there
s

Sourabh Rawat

05/31/2021, 5:58 PM
The thing is its not stopping after 1 springboottest spec is finished. I observed - • the second spec still sees it • second spring boot test is not started. I don’t see any spring startup logs or even debug point in @Configurations does get hit, meaning they are already hit. • debug points does not work for the second spec.
s

sam

05/31/2021, 6:06 PM
So it's like the entire second spec is ignored
s

Sourabh Rawat

05/31/2021, 6:30 PM
The spec is running.
I'll send you a build scan when I'm on my work laptop.
s

sam

05/31/2021, 6:32 PM
Okay
s

Sourabh Rawat

06/01/2021, 3:29 AM
the tests are failing due to the test case reusing the spring instance which was started by another test.
DirtysContext fixes this. not sure if this should be proper workaround tho.
s

sam

06/01/2021, 2:18 PM
Are you using the spring listener or the spring extension ?
s

Sourabh Rawat

06/01/2021, 3:44 PM
Spring extension.
81 Views