From 383de8137be1103ca65728606dc7c5df2166953e Mon Sep 17 00:00:00 2001 From: M3DZIK Date: Tue, 14 Nov 2023 21:43:51 +0100 Subject: [PATCH] Fix CipherClientTests Remove the `cleanup` function that deletes all ciphertexts, since the account is deleted, so they are deleted anyway. This causes an issue because (I guess) the function runs when the account is deleted. --- .../librepass/client/api/CipherClientTests.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/client/src/test/kotlin/dev/medzik/librepass/client/api/CipherClientTests.kt b/client/src/test/kotlin/dev/medzik/librepass/client/api/CipherClientTests.kt index 35a0c2ba..e616a424 100644 --- a/client/src/test/kotlin/dev/medzik/librepass/client/api/CipherClientTests.kt +++ b/client/src/test/kotlin/dev/medzik/librepass/client/api/CipherClientTests.kt @@ -29,19 +29,6 @@ class CipherClientTests { Thread.sleep(1000) } - @AfterAll - @JvmStatic - fun cleanup() { - val authClient = AuthClient(API_URL) - val credentials = authClient.login(EMAIL, PASSWORD) - - val cipherClient = CipherClient(credentials.apiKey, API_URL) - - cipherClient.getAll().forEach { - cipherClient.delete(it.id) - } - } - @AfterAll @JvmStatic fun delete() {