summaryrefslogtreecommitdiffstats
path: root/sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt')
-rw-r--r--sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt b/sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt
index e18b0b10..d8de9f25 100644
--- a/sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt
+++ b/sources/hv-collector-main/src/test/kotlin/org/onap/dcae/collectors/veshv/main/MainTest.kt
@@ -42,7 +42,7 @@ import org.onap.dcae.collectors.veshv.utils.ServerHandle
internal object MainTest : Spek({
describe("closeServer shutdown hook") {
given("server handles and health state") {
- val handle: ServerHandle = mock()
+ val handle = mock<ServerHandle>()
var closed = false
val handleClose = IO {
closed = true
@@ -50,8 +50,8 @@ internal object MainTest : Spek({
whenever(handle.close()).thenReturn(handleClose)
val healthState: HealthState = mock()
- on("closeServers") {
- closeServers(handle, healthState = healthState).invoke()
+ on("shutdownGracefully") {
+ shutdownGracefully(handle, healthState = healthState)
it("should close all handles") {
assertThat(closed).isTrue()