File tree 1 file changed +7
-2
lines changed
javascript/packages/orchestrator/src
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { makeRe } from "minimatch";
4
4
import {
5
5
DEFAULT_INDIVIDUAL_TEST_TIMEOUT ,
6
6
LOCALHOST ,
7
+ RPC_HTTP_PORT ,
7
8
RPC_WS_PORT ,
8
9
WS_URI_PATTERN ,
9
10
} from "./constants" ;
@@ -78,10 +79,14 @@ export class NetworkNode implements NetworkNodeInterface {
78
79
79
80
const url = new URL ( this . wsUri ) ;
80
81
if (
81
- parseInt ( url . port , 10 ) !== RPC_WS_PORT &&
82
+ ! [ RPC_WS_PORT , RPC_HTTP_PORT ] . includes ( parseInt ( url . port , 10 ) ) &&
82
83
client . providerName !== "native"
83
84
) {
84
- const fwdPort = await client . startPortForwarding ( RPC_WS_PORT , this . name ) ;
85
+ // use rpc_port as default (since ws_port was deprecated in https://github.com/paritytech/substrate/pull/13384)
86
+ const fwdPort = await client . startPortForwarding (
87
+ RPC_HTTP_PORT ,
88
+ this . name ,
89
+ ) ;
85
90
86
91
this . wsUri = WS_URI_PATTERN . replace ( "{{IP}}" , LOCALHOST ) . replace (
87
92
"{{PORT}}" ,
You can’t perform that action at this time.
0 commit comments