Skip to content

Commit 5f05477

Browse files
committed
fix tests
1 parent f4afb17 commit 5f05477

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

Spanner/tests/System/AdminTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ public function testInstance()
7878
'nodeCount' => 0,
7979
'processingUnits' => 0,
8080
'state' => Instance::STATE_READY,
81-
'config' => ''
81+
'config' => '',
82+
'replicaComputeCapacity' => [],
83+
'edition' => 0,
84+
'defaultBackupScheduleType' => 0,
8285
];
8386
$info = $instance->reload(['fieldMask' => $requestedFieldNames]);
8487
$this->assertEquals($expectedInfo, $info);
@@ -139,7 +142,8 @@ public function testDatabaseDropProtection()
139142
$op = $instance->createDatabase($dbName);
140143

141144
$this->assertInstanceOf(OperationResponse::class, $op);
142-
$db = $op->pollUntilComplete();
145+
$op->pollUntilComplete();
146+
$db = $op->getResult();
143147
$this->assertInstanceOf(Database::class, $db);
144148

145149
$info = $db->reload();

0 commit comments

Comments
 (0)