test/Comment out payment test cases in EthereumConnector_vSept2025Test to prevent execution during local Anvil setup

This commit is contained in:
hongwei 2025-09-23 22:34:01 +02:00
parent 49daedf030
commit 07c1b5a740

View File

@ -52,22 +52,22 @@ class EthereumConnector_vSept2025Test extends V510ServerSetup{
}
// This is only for testing; you can comment it out when the local Anvil is running.
val resF = StubConnector.makePaymentv210(
from,
to,
TransactionRequestId(java.util.UUID.randomUUID().toString),
trxBody,
amount,
"test",
TransactionRequestType("ETHEREUM") ,
"none",
None
)
val res = Await.result(resF, 10.seconds)
res._1 shouldBe a [Full[_]]
val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
txId.value should startWith ("0x")
// val resF = StubConnector.makePaymentv210(
// from,
// to,
// TransactionRequestId(java.util.UUID.randomUUID().toString),
// trxBody,
// amount,
// "test",
// TransactionRequestType("ETHEREUM") ,
// "none",
// None
// )
//
// val res = Await.result(resF, 10.seconds)
// res._1 shouldBe a [Full[_]]
// val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
// txId.value should startWith ("0x")
}
}
@ -88,22 +88,22 @@ class EthereumConnector_vSept2025Test extends V510ServerSetup{
}
// Enable integration test against private chain
val resF = StubConnector.makePaymentv210(
from,
to,
TransactionRequestId(java.util.UUID.randomUUID().toString),
trxBody,
amount,
"test",
TransactionRequestType("ETHEREUM") ,
"none",
None
)
val res = Await.result(resF, 30.seconds)
res._1 shouldBe a [Full[_]]
val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
txId.value should startWith ("0x")
// val resF = StubConnector.makePaymentv210(
// from,
// to,
// TransactionRequestId(java.util.UUID.randomUUID().toString),
// trxBody,
// amount,
// "test",
// TransactionRequestType("ETHEREUM") ,
// "none",
// None
// )
//
// val res = Await.result(resF, 30.seconds)
// res._1 shouldBe a [Full[_]]
// val txId = res._1.openOrThrowException(ErrorMessages.UnknownError)
// txId.value should startWith ("0x")
}
}
}