php: fix interop stub construction after codegen fix
This commit is contained in:
parent
41d2b291eb
commit
69e9747eb9
|
|
@ -47,6 +47,10 @@ abstract class AbstractGeneratedCodeTest extends PHPUnit_Framework_TestCase {
|
|||
$this->assertTrue(self::$client->waitForReady(250000));
|
||||
}
|
||||
|
||||
public function testGetTarget() {
|
||||
$this->assertTrue(is_string(self::$client->getTarget()));
|
||||
}
|
||||
|
||||
public function testSimpleRequest() {
|
||||
$div_arg = new math\DivArgs();
|
||||
$div_arg->setDividend(7);
|
||||
|
|
|
|||
|
|
@ -332,11 +332,7 @@ if (in_array($args['test_case'], array(
|
|||
$opts['update_metadata'] = $auth->getUpdateMetadataFunc();
|
||||
}
|
||||
|
||||
$internal_stub = new Grpc\BaseStub($server_address, $opts);
|
||||
hardAssert(is_string($internal_stub->getTarget()),
|
||||
'Unexpected target URI value');
|
||||
|
||||
$stub = new grpc\testing\TestServiceClient($internal_stub);
|
||||
$stub = new grpc\testing\TestServiceClient($server_address, $opts);
|
||||
|
||||
echo "Connecting to $server_address\n";
|
||||
echo "Running test case $args[test_case]\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue