SNRK-86: Works

This commit is contained in:
Kirill Grachev 2023-05-06 19:14:44 +03:00
parent 667688d46d
commit a99e71d1b1
3 changed files with 14 additions and 16 deletions

View File

@ -7,7 +7,7 @@ import space.kscience.snark.ktor.SNARKServer
import space.kscience.snark.storage.local.localStorage
import kotlin.io.path.Path
fun main() = runBlocking {
fun main(): Unit = runBlocking {
val port = 8080
val directory = localStorage(Path("./rundata"))
val server = SNARKServer(ServerDataHolder(directory), port)

View File

@ -1,15 +0,0 @@
package space.kscience.snark.main
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
import space.kscience.snark.ktor.SNARKServer
import space.kscience.snark.storage.local.localStorage
import kotlin.io.path.Path
class Acceptance {
@Test
fun justWorks() = runBlocking {
main()
}
}

View File

@ -0,0 +1,13 @@
package space.kscience.snark.main
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
class Test {
@Test
fun justWorks() = runBlocking {
delay(5)
main()
}
}