File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
appengine/flexible/logging Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 3939 $ logger = $ logging ->logger ('logging-sample ' );
4040 $ logs = $ logger ->entries ([
4141 'pageSize ' => 10 ,
42+ 'resultLimit ' => 10 ,
4243 'orderBy ' => 'timestamp desc '
4344 ]);
4445 return $ app ['twig ' ]->render ('index.html.twig ' , ['logs ' => $ logs ]);
Original file line number Diff line number Diff line change 33 "type" : " project" ,
44 "require" : {
55 "google/cloud-iot" : " ^1.0.0" ,
6- "symfony/console" : " ^3.3 "
6+ "symfony/console" : " ^4.0 "
77 },
88 "autoload" : {
99 "files" : [
Original file line number Diff line number Diff line change 2121use Google \Cloud \TestUtils \ExecuteCommandTrait ;
2222use Google \Cloud \TestUtils \TestTrait ;
2323use PHPUnit \Framework \TestCase ;
24+ use PHPUnitRetry \RetryTrait ;
2425
2526/**
2627 * Unit Tests for iot commands.
2728 */
2829class iotTest extends TestCase
2930{
30- use TestTrait, ExecuteCommandTrait;
31+ use TestTrait, ExecuteCommandTrait, RetryTrait ;
3132
3233 private static $ commandFile = __DIR__ . '/../iot.php ' ;
3334 private static $ testId ;
@@ -290,7 +291,10 @@ public function testCreateGateway()
290291 $ this ->assertContains ($ gatewayId , $ output );
291292 }
292293
293- /** @depends testCreateGateway */
294+ /**
295+ * @depends testCreateGateway
296+ * @retryAttempts 3
297+ */
294298 public function testBindUnbindDevice ()
295299 {
296300 $ deviceId = 'test-device-to-bind ' . self ::$ testId ;
You can’t perform that action at this time.
0 commit comments