Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ts-rpc-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: TypeScript RPC Client Test

on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
Expand All @@ -14,7 +16,7 @@ jobs:
- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: "18.15.0"
node-version: "20.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make this change across all our github workflows, to keep things consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep fbdcc92


# Install foundry so we can use it to run a chain instance
- name: Install Foundry
Expand Down
4 changes: 2 additions & 2 deletions packages/nitro-rpc-client/scripts/client-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function getChannelIdFromObjectiveId(objectiveId: string): string {
return objectiveId.split("-")[1];
}

// Waits for the RPC server to be available by sending a simple get_address POST request until we get a response
// Waits up to waitDuration milliseconds for the RPC server to be available
async function waitForRPCServer(
port: number,
waitDuration: number
Expand All @@ -317,7 +317,7 @@ async function waitForRPCServer(
);
}

// Checks if the server is up by sending a simple get_address POST request
// Checks if the server is up by sending a simple GET request to the health endpoint
// This is specific to the HTTP/WS RPC transport
async function isServerUp(port: number): Promise<boolean> {
let result: AxiosResponse<unknown, unknown>;
Expand Down