From 8fab00300a7804da0e2c9cdc3a25c96b0270c579 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 27 Oct 2023 14:01:12 -0400 Subject: [PATCH] Fixes Benchmark tests --- .../amethyst/benchmark/GiftWrapReceivingBenchmark.kt | 4 ++-- .../amethyst/benchmark/GiftWrapSigningBenchmark.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapReceivingBenchmark.kt b/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapReceivingBenchmark.kt index ad3d331f9..a84cbd84d 100644 --- a/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapReceivingBenchmark.kt +++ b/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapReceivingBenchmark.kt @@ -36,14 +36,14 @@ class GiftWrapReceivingBenchmark { return ChatMessageEvent.create( msg = "Hi there! This is a test message", to = to, - privateKey = sender.privKey!!, subject = "Party Tonight", replyTos = emptyList(), mentions = emptyList(), zapReceiver = null, markAsSensitive = true, zapRaiserAmount = 10000, - geohash = null + geohash = null, + keyPair = sender ) } diff --git a/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapSigningBenchmark.kt b/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapSigningBenchmark.kt index da834c887..b14770e7e 100644 --- a/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapSigningBenchmark.kt +++ b/benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapSigningBenchmark.kt @@ -35,14 +35,14 @@ class GiftWrapSigningBenchmark { return ChatMessageEvent.create( msg = "Hi there! This is a test message", to = to, - privateKey = sender.privKey!!, subject = "Party Tonight", replyTos = emptyList(), mentions = emptyList(), zapReceiver = null, markAsSensitive = true, zapRaiserAmount = 10000, - geohash = null + geohash = null, + keyPair = sender ) }