diff --git a/src/test/kotlin/core/messaging/InMemoryNetwork.kt b/src/test/kotlin/core/messaging/InMemoryNetwork.kt index 80180384ec..090562ee04 100644 --- a/src/test/kotlin/core/messaging/InMemoryNetwork.kt +++ b/src/test/kotlin/core/messaging/InMemoryNetwork.kt @@ -11,8 +11,7 @@ package core.messaging import com.google.common.util.concurrent.Futures import com.google.common.util.concurrent.ListenableFuture import com.google.common.util.concurrent.MoreExecutors -import core.Party -import core.crypto.generateKeyPair +import core.DummyTimestampingAuthority import core.crypto.sha256 import core.node.TimestamperNodeService import core.utilities.loggerFor @@ -126,10 +125,8 @@ public class InMemoryNetwork { check(timestampingAdvert == null) val (handle, builder) = createNode(manuallyPumped) val node = builder.start().get() - val key = generateKeyPair() - val identity = Party("Unit test timestamping authority", key.public) - TimestamperNodeService(node, identity, key) - timestampingAdvert = LegallyIdentifiableNode(handle, identity) + TimestamperNodeService(node, DummyTimestampingAuthority.identity, DummyTimestampingAuthority.key) + timestampingAdvert = LegallyIdentifiableNode(handle, DummyTimestampingAuthority.identity) return Pair(timestampingAdvert!!, node) }