diff --git a/testmodule/providers/jsonrpc/rpc_mock.nim b/testmodule/providers/jsonrpc/rpc_mock.nim index 2c337db..591aaa3 100644 --- a/testmodule/providers/jsonrpc/rpc_mock.nim +++ b/testmodule/providers/jsonrpc/rpc_mock.nim @@ -14,7 +14,7 @@ type MockRpcHttpServer* = ref object srv: RpcHttpServer proc new*(_: type MockRpcHttpServer): MockRpcHttpServer = - let port = rand(65000..<66000) + let port = rand(49152..65535) let srv = newRpcHttpServer(["127.0.0.1:" & $port]) let filters = initTable[string, bool]() MockRpcHttpServer(filters: filters, newFilterCounter: 0, srv: srv)