mirror of
https://github.com/status-im/nim-ethers.git
synced 2025-02-25 21:45:19 +00:00
update port range
This commit is contained in:
parent
b12ed2a1de
commit
f8c196843d
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user