@@ -47,7 +47,7 @@ function waitUntilNotIdle($channel) {
47
47
}
48
48
49
49
// Set up
50
- $ channel = new Grpc \Channel ('localhost:0 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
50
+ $ channel = new Grpc \Channel ('localhost:50101 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
51
51
52
52
// Test InsecureCredentials
53
53
assert ('Grpc\Channel ' == get_class ($ channel ));
@@ -56,28 +56,16 @@ function waitUntilNotIdle($channel) {
56
56
$ state = $ channel ->getConnectivityState ();
57
57
assert (0 == $ state );
58
58
59
- // Test GetConnectivityStateWithInt
60
- $ state = $ channel ->getConnectivityState (123 );
61
- assert (0 == $ state );
62
-
63
- // Test GetConnectivityStateWithString
64
- $ state = $ channel ->getConnectivityState ('hello ' );
65
- assert (0 == $ state );
66
-
67
- // Test GetConnectivityStateWithBool
68
- $ state = $ channel ->getConnectivityState (true );
69
- assert (0 == $ state );
70
-
71
59
$ channel ->close ();
72
60
73
61
// Test GetTarget
74
- $ channel = new Grpc \Channel ('localhost:8888 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
62
+ $ channel = new Grpc \Channel ('localhost:50102 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
75
63
$ target = $ channel ->getTarget ();
76
64
assert (is_string ($ target ) == true );
77
65
$ channel ->close ();
78
66
79
67
// Test WatchConnectivityState
80
- $ channel = new Grpc \Channel ('localhost:0 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
68
+ $ channel = new Grpc \Channel ('localhost:50103 ' , ['credentials ' => Grpc \ChannelCredentials::createInsecure ()]);
81
69
$ now = Grpc \Timeval::now ();
82
70
$ deadline = $ now ->add (new Grpc \Timeval (100 *1000 ));
83
71
0 commit comments