Skip to content

Commit cbbbac9

Browse files
committed
debugging ci
1 parent b85bb84 commit cbbbac9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

testmodule/providers/jsonrpc/rpc_mock.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type MockRpcHttpServer* = ref object
1414
srv: RpcHttpServer
1515

1616
proc new*(_: type MockRpcHttpServer): MockRpcHttpServer =
17-
MockRpcHttpServer(filters: initTable[string, bool](), newFilterCounter: 0, srv: newRpcHttpServer(["127.0.0.1:0"]))
17+
MockRpcHttpServer(filters: initTable[string, bool](), newFilterCounter: 0, srv: newRpcHttpServer(["127.0.0.1:65080"]))
1818

1919
proc invalidateFilter*(server: MockRpcHttpServer, id: string) =
2020
server.filters[id] = false

testmodule/providers/jsonrpc/testJsonRpcSubscriptions.nim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,24 @@ suite "HTTP polling subscriptions - filter not found":
103103
var mockServer: MockRpcHttpServer
104104

105105
setup:
106+
echo "Creating MockRpcHttpServer instance"
106107
mockServer = MockRpcHttpServer.new()
108+
echo "Starting MockRpcHttpServer..."
107109
mockServer.start()
110+
echo "Started MockRpcHttpServer"
108111

112+
echo "Creating new RpcHttpClient instance..."
109113
client = newRpcHttpClient()
114+
echo "Connecting RpcHttpClient to MockRpcHttpServer..."
110115
await client.connect("http://" & $mockServer.localAddress()[0])
116+
echo "Connected RpcHttpClient to MockRpcHttpServer"
111117

118+
echo "Creating new JsonRpcSubscriptions instance..."
112119
subscriptions = JsonRpcSubscriptions.new(client,
113120
pollingInterval = 15.millis)
121+
echo "Starting JsonRpcSubscriptions..."
114122
subscriptions.start()
123+
echo "Started JsonRpcSubscriptions"
115124

116125
teardown:
117126
await subscriptions.close()

0 commit comments

Comments
 (0)