From 889e00448f3ca175dd99e4c7fa8216989cde1b28 Mon Sep 17 00:00:00 2001 From: sergeych Date: Sun, 18 Dec 2022 23:18:19 +0100 Subject: [PATCH] more tests --- src/jvmTest/kotlin/net/sergeych/WsServerKtTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jvmTest/kotlin/net/sergeych/WsServerKtTest.kt b/src/jvmTest/kotlin/net/sergeych/WsServerKtTest.kt index 8fdf48f..b7fadd2 100644 --- a/src/jvmTest/kotlin/net/sergeych/WsServerKtTest.kt +++ b/src/jvmTest/kotlin/net/sergeych/WsServerKtTest.kt @@ -219,6 +219,7 @@ internal class WsServerKtTest { val slc = SuperloginClient(client) assertEquals(LoginState.LoggedOut, slc.state.value) var rt = slc.register("foo", "passwd", TestData("bar!")) + val dk1 = slc.dataKey!! assertIs(rt) val secret = rt.secret var token = rt.loginToken @@ -244,8 +245,7 @@ internal class WsServerKtTest { assertEquals("bar!", ar.data?.foo) assertTrue { slc.isLoggedIn } assertEquals("foo", slc.call(api.loginName)) - - + assertEquals(dk1.id, slc.dataKey!!.id) } } @Test