@@ -48,20 +48,20 @@ func TestServer(t *testing.T) {
4848 testsuite .InsertChannel (rt , "8291264a-4581-4d12-96e5-e9fcfa6e68d9" , orgID , "TWC" , "WebChat" , "123" , []string {"webchat" })
4949
5050 // try to start for a non-existent channel
51- req , _ := http .NewRequest ("POST" , "http://localhost:8070 /wc/connect/16955bac-23fd-4b5f-8981-530679ae0ac4/" , nil )
51+ req , _ := http .NewRequest ("POST" , "http://localhost:8071 /wc/connect/16955bac-23fd-4b5f-8981-530679ae0ac4/" , nil )
5252 trace , err := httpx .DoTrace (http .DefaultClient , req , nil , nil , - 1 )
5353 assert .NoError (t , err )
5454 assert .Equal (t , 400 , trace .Response .StatusCode )
5555 assert .Equal (t , `{"error":"no such channel"}` , string (trace .ResponseBody ))
5656
5757 // try to start against an existing channel (still fails because HTTP client does support web sockets)
58- req , _ = http .NewRequest ("POST" , "http://localhost:8070 /wc/connect/8291264a-4581-4d12-96e5-e9fcfa6e68d9/" , nil )
58+ req , _ = http .NewRequest ("POST" , "http://localhost:8071 /wc/connect/8291264a-4581-4d12-96e5-e9fcfa6e68d9/" , nil )
5959 trace , err = httpx .DoTrace (http .DefaultClient , req , nil , nil , - 1 )
6060 assert .NoError (t , err )
6161 assert .Equal (t , 400 , trace .Response .StatusCode )
6262 assert .Equal (t , "Bad Request\n " , string (trace .ResponseBody ))
6363
64- c , _ , err := websocket .DefaultDialer .Dial ("ws://localhost:8070 /wc/connect/8291264a-4581-4d12-96e5-e9fcfa6e68d9/" , nil )
64+ c , _ , err := websocket .DefaultDialer .Dial ("ws://localhost:8071 /wc/connect/8291264a-4581-4d12-96e5-e9fcfa6e68d9/" , nil )
6565 require .NoError (t , err )
6666 require .NotNil (t , c )
6767
0 commit comments