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