diff options
author | Antoine A <> | 2024-02-13 20:35:04 +0100 |
---|---|---|
committer | Antoine A <> | 2024-02-13 20:39:29 +0100 |
commit | 3d1dfce83bf74917886a5f3cc55aa7f97b74aac4 (patch) | |
tree | 5b6f2863451e3dd62fb5267a33c0753fa4770729 /testbench | |
parent | 3046601e239d774716527d4a0a34f585ac5ade79 (diff) | |
download | libeufin-3d1dfce83bf74917886a5f3cc55aa7f97b74aac4.tar.gz libeufin-3d1dfce83bf74917886a5f3cc55aa7f97b74aac4.tar.bz2 libeufin-3d1dfce83bf74917886a5f3cc55aa7f97b74aac4.zip |
Code cleanup
Diffstat (limited to 'testbench')
-rw-r--r-- | testbench/src/main/kotlin/Main.kt | 2 | ||||
-rw-r--r-- | testbench/src/test/kotlin/IntegrationTest.kt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/testbench/src/main/kotlin/Main.kt b/testbench/src/main/kotlin/Main.kt index 4495bde8..81163575 100644 --- a/testbench/src/main/kotlin/Main.kt +++ b/testbench/src/main/kotlin/Main.kt @@ -78,7 +78,7 @@ class Cli : CliktCommand("Run integration tests on banks provider") { override fun run() { // List available platform - val platforms = Path("test").listDirectoryEntries().filter { it.isDirectory() }.map { it.getFileName().toString() } + val platforms = Path("test").listDirectoryEntries().filter { it.isDirectory() }.map { it.fileName.toString() } if (!platforms.contains(platform)) { println("Unknown platform '$platform', expected one of $platforms") throw ProgramResult(1) diff --git a/testbench/src/test/kotlin/IntegrationTest.kt b/testbench/src/test/kotlin/IntegrationTest.kt index 282c5991..455276d9 100644 --- a/testbench/src/test/kotlin/IntegrationTest.kt +++ b/testbench/src/test/kotlin/IntegrationTest.kt @@ -96,7 +96,7 @@ inline fun assertException(msg: String, lambda: () -> Unit) { class IntegrationTest { val nexusCmd = LibeufinNexusCommand() - val bankCmd = LibeufinBankCommand(); + val bankCmd = LibeufinBankCommand() val client = HttpClient(CIO) @Test @@ -278,7 +278,7 @@ class IntegrationTest { // Cashin repeat(3) { i -> - val reservePub = randBytes(32); + val reservePub = randBytes(32) val amount = TalerAmount("EUR:${20+i}") val subject = "cashin test $i: ${Base32Crockford.encode(reservePub)}" nexusCmd.run("testing fake-incoming $flags --subject \"$subject\" --amount $amount $userPayTo") @@ -302,10 +302,10 @@ class IntegrationTest { // Cashout repeat(3) { i -> - val requestUid = randBytes(32); + val requestUid = randBytes(32) val amount = TalerAmount("KUDOS:${10+i}") val convert = client.get("http://0.0.0.0:8080/conversion-info/cashout-rate?amount_debit=$amount") - .assertOkJson<ConversionResponse>().amount_credit; + .assertOkJson<ConversionResponse>().amount_credit client.post("http://0.0.0.0:8080/accounts/customer/cashouts") { basicAuth("customer", "password") json { |