Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Fix CipherClientTests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
M3DZIK committed Nov 14, 2023
1 parent 63cf411 commit 383de81
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 383de81

Please sign in to comment.