Skip to content

Commit

Permalink
Removed ambiguous status
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Oct 24, 2023
1 parent 60e4ae2 commit 33b5ea7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.stellar.anchor.platform.test

import java.lang.Thread.sleep
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.assertThrows
import org.stellar.anchor.api.exception.SepNotFoundException
Expand Down Expand Up @@ -64,14 +63,11 @@ class Sep12Tests(config: TestConfig, toml: Sep1Helper.TomlContent, jwt: String)
var pr = sep12Client.putCustomer(customer)
printResponse(pr)

sleep(1000)

// make sure the customer was uploaded correctly.
printRequest("Calling GET /customer", customer)
var gr = sep12Client.getCustomer(pr!!.id)
printResponse(gr)

assertEquals(Sep12Status.NEEDS_INFO, gr?.status)
assertEquals(pr.id, gr?.id)

customer.emailAddress = "[email protected]"
Expand Down Expand Up @@ -102,6 +98,7 @@ class Sep12Tests(config: TestConfig, toml: Sep1Helper.TomlContent, jwt: String)
assertEquals("customer for 'id' '$id' not found", ex.message)
println(ex)
}

fun testAll() {
println("Performing Sep12 tests...")
`test put, get customers`()
Expand Down

0 comments on commit 33b5ea7

Please sign in to comment.