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 39
39
$ logger = $ logging ->logger ('logging-sample ' );
40
40
$ logs = $ logger ->entries ([
41
41
'pageSize ' => 10 ,
42
+ 'resultLimit ' => 10 ,
42
43
'orderBy ' => 'timestamp desc '
43
44
]);
44
45
return $ app ['twig ' ]->render ('index.html.twig ' , ['logs ' => $ logs ]);
Original file line number Diff line number Diff line change 3
3
"type" : " project" ,
4
4
"require" : {
5
5
"google/cloud-iot" : " ^1.0.0" ,
6
- "symfony/console" : " ^3.3 "
6
+ "symfony/console" : " ^4.0 "
7
7
},
8
8
"autoload" : {
9
9
"files" : [
Original file line number Diff line number Diff line change 21
21
use Google \Cloud \TestUtils \ExecuteCommandTrait ;
22
22
use Google \Cloud \TestUtils \TestTrait ;
23
23
use PHPUnit \Framework \TestCase ;
24
+ use PHPUnitRetry \RetryTrait ;
24
25
25
26
/**
26
27
* Unit Tests for iot commands.
27
28
*/
28
29
class iotTest extends TestCase
29
30
{
30
- use TestTrait, ExecuteCommandTrait;
31
+ use TestTrait, ExecuteCommandTrait, RetryTrait ;
31
32
32
33
private static $ commandFile = __DIR__ . '/../iot.php ' ;
33
34
private static $ testId ;
@@ -290,7 +291,10 @@ public function testCreateGateway()
290
291
$ this ->assertContains ($ gatewayId , $ output );
291
292
}
292
293
293
- /** @depends testCreateGateway */
294
+ /**
295
+ * @depends testCreateGateway
296
+ * @retryAttempts 3
297
+ */
294
298
public function testBindUnbindDevice ()
295
299
{
296
300
$ deviceId = 'test-device-to-bind ' . self ::$ testId ;
You can’t perform that action at this time.
0 commit comments