Skip to content

Commit

Permalink
Fix Sep12Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Nov 2, 2023
1 parent 7cddeba commit cf85b42
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package org.stellar.anchor.platform.integrationtest

import io.ktor.client.plugins.*
import kotlinx.coroutines.runBlocking
import kotlinx.serialization.json.Json
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.stellar.anchor.api.sep.sep12.Sep12Status
import org.stellar.anchor.platform.TestConfig
import org.stellar.anchor.platform.printRequest
Expand Down Expand Up @@ -56,14 +58,14 @@ class Sep12Tests : AbstractIntegrationTests(TestConfig(testProfileName = "defaul
assertEquals(pr.id, gr.id)
assertEquals(Sep12Status.ACCEPTED.name, gr.status!!.status)

// // Delete the customer
// printRequest("Calling DELETE /customer/$CLIENT_WALLET_ACCOUNT")
// anchor.sep12(token).delete(CLIENT_WALLET_ACCOUNT)
//
// val ex: ClientRequestException = assertThrows {
// anchor.sep12(token).getByIdAndType(pr.id, "sep31-receiver")
// }
// println(ex)
// Delete the customer
printRequest("Calling DELETE /customer/$walletKeyPair.address")
anchor.sep12(token).delete(walletKeyPair.address)

val ex: ClientRequestException = assertThrows {
anchor.sep12(token).getByIdAndType(pr.id, "sep31-receiver")
}
println(ex)
}

companion object {
Expand Down

0 comments on commit cf85b42

Please sign in to comment.