File tree Expand file tree Collapse file tree
utils/ort/src/funTest/kotlin/storage Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,12 +34,13 @@ import java.io.IOException
3434import java.net.HttpURLConnection
3535import java.net.InetAddress
3636import java.net.InetSocketAddress
37+ import java.util.concurrent.ConcurrentHashMap
3738
3839class HttpFileStorageFunTest : WordSpec () {
3940 private val loopback = InetAddress .getLoopbackAddress()
4041
4142 private val handler = object : HttpHandler {
42- val requests = mutableMapOf <String , String >()
43+ val requests = ConcurrentHashMap <String , String >()
4344
4445 override fun handle (exchange : HttpExchange ) {
4546 when (exchange.requestMethod) {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import io.kotest.matchers.shouldBe
3434import java.net.HttpURLConnection
3535import java.net.InetAddress
3636import java.net.InetSocketAddress
37+ import java.util.concurrent.ConcurrentHashMap
3738
3839class S3FileStorageFunTest : WordSpec () {
3940 private val loopback = InetAddress .getLoopbackAddress()
@@ -42,7 +43,7 @@ class S3FileStorageFunTest : WordSpec() {
4243 private val bucket = " ort-scan-results"
4344
4445 private val handler = object : HttpHandler {
45- val requests = mutableMapOf <String , String >()
46+ val requests = ConcurrentHashMap <String , String >()
4647
4748 override fun handle (exchange : HttpExchange ) {
4849 when (exchange.requestMethod) {
You can’t perform that action at this time.
0 commit comments