diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt index 3918bfb0..b34b1614 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestClient.kt @@ -25,6 +25,7 @@ import ch.qos.logback.core.ConsoleAppender import dorkbox.network.Client import dorkbox.network.connection.Connection import dorkboxTest.network.BaseTest +import dorkboxTest.network.rmi.RmiCommonTest import dorkboxTest.network.rmi.cows.TestCow import kotlinx.coroutines.runBlocking import org.junit.Assert @@ -64,22 +65,25 @@ object TestClient { fun main(args: Array) { setup() - val configuration = BaseTest.clientConfig() - configuration.enableRemoteSignatureValidation = false + val config = BaseTest.clientConfig() + config.enableRemoteSignatureValidation = false + config.enableIpc = false + config.aeronDirectoryForceUnique = true - val client = Client(configuration) + + val client = Client(config) client.onConnect { connection -> System.err.println("Starting test for: Client -> Server") connection.createObject(124123) { _, remoteObject -> -// RmiTest.runTests(connection, remoteObject, 124123) -// System.err.println("DONE") + RmiCommonTest.runTests(connection, remoteObject, 124123) + client.logger.error("DONE") // now send this remote object ACROSS the wire to the server (on the server, this is where the IMPLEMENTATION lives) connection.send(remoteObject) -// client.close() + client.close() } } diff --git a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt index 5df9b364..ddc2a07f 100644 --- a/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt +++ b/test/dorkboxTest/network/rmi/multiJVM/TestServer.kt @@ -50,7 +50,7 @@ object TestServer { val `object` = m.testCow val id = `object`.id() Assert.assertEquals(124123, id.toLong()) - System.err.println("Finished test for: Client -> Server") + connection.logger.error("Finished test for: Client -> Server") // // System.err.println("Starting test for: Server -> Client") @@ -62,7 +62,7 @@ object TestServer { } server.onMessage { connection, test -> - System.err.println("Received test cow from client") + connection.logger.error("Received test cow from client") // this object LIVES on the server. try {