Skip to content

Commit

Permalink
Fix broken issuance test
Browse files Browse the repository at this point in the history
Signed-off-by: WaltId-MikeRichardson <mike.richardson@walt.id>
  • Loading branch information
WaltId-MikeRichardson committed Mar 6, 2024
1 parent 8566e24 commit d4bc80e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ import id.walt.oid4vc.responses.TokenResponse
import id.walt.oid4vc.util.randomUUID
import id.walt.webwallet.manifest.extractor.EntraManifestExtractor
import id.walt.webwallet.service.oidc4vc.TestCredentialWallet
import io.ktor.client.*
import id.walt.webwallet.utils.WalletHttpClients
import io.ktor.client.call.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.request.*
import io.ktor.client.request.forms.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.serialization.kotlinx.json.*
import io.ktor.util.*
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonObject
Expand All @@ -32,12 +29,8 @@ import kotlinx.serialization.json.jsonPrimitive
import org.slf4j.LoggerFactory

object IssuanceService {
private val http = HttpClient(CIO) {
install(ContentNegotiation) {
json()
}
followRedirects = false
}

private val http = WalletHttpClients.getHttpClient()
private val logger = LoggerFactory.getLogger(this::class.java)

suspend fun useOfferRequest(
Expand Down
2 changes: 1 addition & 1 deletion waltid-wallet-api/src/test/kotlin/E2EWalletTestLocal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class E2EWalletTestLocal : E2EWalletTestBase() {

localWalletClient = newClient(token)

// list all wallets for this user
// list all wallets for this user - set wallet id
listAllWalletsForUser()

// list all Dids for this user and set default for credential issuance
Expand Down

0 comments on commit d4bc80e

Please sign in to comment.