work in porgress: fixing close connection

This commit is contained in:
sergeych committed 2024-03-23 01:29:48 +01:00
1 parent c0ca802a30
commit 93dc66acc5
13 files changed
+146 -39

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ inline fun <reified T: Throwable>assertThrows(f: ()->Unit): T {
}
catch(x: Throwable) {
if( x is T ) return x
fail("expected to throw $name but instead threw ${x::class.simpleName}: $x")
println("expected to throw $name but instead threw ${x::class.simpleName}: $x\b\n${x.stackTraceToString()}")
fail("expected to throw $name but instead threw ${x::class.simpleName}: $x\b\n${x.stackTraceToString()}")
}
}