Procházet zdrojové kódy

Cont dir & query node integration: Fix apollo-client port

iorveth před 4 roky
rodič
revize
d8c8940a93

+ 1 - 1
tests/network-tests/.env

@@ -1,7 +1,7 @@
 # Address of the Joystream node.
 NODE_URL = ws://127.0.0.1:9944
 # Address of the Joystream query node.
-QUERY_NODE_URL = http://127.0.0.1:4000/graphql
+QUERY_NODE_URL = http://127.0.0.1:8080/graphql
 # Account which is expected to provide sufficient funds to test accounts.
 TREASURY_ACCOUNT_URI = //Alice
 # Sudo Account

+ 1 - 1
tests/network-tests/src/Api.ts

@@ -2028,7 +2028,7 @@ export class QueryNodeApi extends Api {
   public async getChannelbyTitle(channel_title: string): Promise<ApolloQueryResult<any>> {
     const GET_CHANNEL_BY_TITLE = gql`
       query getChannelbyTitle($title: String) {
-        channel(title: $title) {
+        channels(title: $title) {
           title
           description
           language

+ 1 - 1
tests/network-tests/src/scenarios/content-directory.ts

@@ -17,7 +17,7 @@ const scenario = async () => {
   const nodeUrl: string = env.NODE_URL || 'ws://127.0.0.1:9944'
   const provider = new WsProvider(nodeUrl)
 
-  const queryNodeUrl: string = env.QUERY_NODE_URL || 'http://127.0.0.1:4000/graphql'
+  const queryNodeUrl: string = env.QUERY_NODE_URL || 'http://127.0.0.1:8080/graphql'
 
   const queryNodeProvider = new ApolloClient({
     uri: queryNodeUrl,