From 1ea69eca00b71a26ca4732f48f601e4418007a06 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Fri, 3 Nov 2023 12:13:07 -0700 Subject: [PATCH] remove the performance test --- .../xmtp/android/library/ConversationTest.kt | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/library/src/androidTest/java/org/xmtp/android/library/ConversationTest.kt b/library/src/androidTest/java/org/xmtp/android/library/ConversationTest.kt index e746ba363..e3fbe492c 100644 --- a/library/src/androidTest/java/org/xmtp/android/library/ConversationTest.kt +++ b/library/src/androidTest/java/org/xmtp/android/library/ConversationTest.kt @@ -1,6 +1,5 @@ package org.xmtp.android.library -import android.util.Log import androidx.test.ext.junit.runners.AndroidJUnit4 import app.cash.turbine.test import com.google.protobuf.kotlin.toByteString @@ -775,26 +774,4 @@ class ConversationTest { // Conversations you send a message to get marked as allowed assertTrue(isNowAllowed) } - - @Test - fun testPerformance() { - val bobConversation = aliceClient.conversations.newConversation(bob.walletAddress) - val steveConversation = aliceClient.conversations.newConversation(fixtures.steve.walletAddress) - - val numberOfIterations = 5000 - for (i in 1..numberOfIterations) { - bobConversation.send(text = "hey bob $i") - steveConversation.send(text = "hey steve $i") - } - Log.d("PERF", "Done sending messages") - - val start = Date().time - val messages = aliceClient.conversations.listBatchMessages( - listOf( - Pair(steveConversation.topic, null), Pair(bobConversation.topic, null) - ) - ) - val end = Date().time - Log.d("PERF", "Loaded ${messages.size} messages in ${end - start}ms") - } }