20
20
21
21
use Google \Cloud \Bigtable \Mutations ;
22
22
use PHPUnit \Framework \TestCase ;
23
+ use PHPUnitRetry \RetryTrait ;
23
24
24
25
final class FilterTest extends TestCase
25
26
{
26
27
use BigtableTestTrait;
28
+ use RetryTrait;
27
29
28
30
const INSTANCE_ID_PREFIX = 'phpunit-test- ' ;
29
31
const TABLE_ID_PREFIX = 'mobile-time-series- ' ;
@@ -84,9 +86,6 @@ public static function tearDownAfterClass(): void
84
86
self ::deleteBigtableInstance ();
85
87
}
86
88
87
- /**
88
- * @runInSeparateProcess
89
- */
90
89
public function testFilterLimitRowSample ()
91
90
{
92
91
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -99,9 +98,6 @@ public function testFilterLimitRowSample()
99
98
$ this ->assertContains ($ result , trim ($ output ));
100
99
}
101
100
102
- /**
103
- * @runInSeparateProcess
104
- */
105
101
public function testFilterLimitRowRegex ()
106
102
{
107
103
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -132,9 +128,6 @@ public function testFilterLimitRowRegex()
132
128
$ this ->assertEquals ($ result , trim ($ output ));
133
129
}
134
130
135
- /**
136
- * @runInSeparateProcess
137
- */
138
131
public function testFilterLimitCellsPerCol ()
139
132
{
140
133
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -189,9 +182,6 @@ public function testFilterLimitCellsPerCol()
189
182
$ this ->assertEquals ($ result , trim ($ output ));
190
183
}
191
184
192
- /**
193
- * @runInSeparateProcess
194
- */
195
185
public function testFilterLimitCellsPerRow ()
196
186
{
197
187
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -233,9 +223,6 @@ public function testFilterLimitCellsPerRow()
233
223
$ this ->assertEquals ($ result , trim ($ output ));
234
224
}
235
225
236
- /**
237
- * @runInSeparateProcess
238
- */
239
226
public function testFilterLimitCellsPerRowOffset ()
240
227
{
241
228
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -276,9 +263,6 @@ public function testFilterLimitCellsPerRowOffset()
276
263
$ this ->assertEquals ($ result , trim ($ output ));
277
264
}
278
265
279
- /**
280
- * @runInSeparateProcess
281
- */
282
266
public function testFilterLimitColFamilyRegex ()
283
267
{
284
268
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -321,9 +305,6 @@ public function testFilterLimitColFamilyRegex()
321
305
$ this ->assertEquals ($ result , trim ($ output ));
322
306
}
323
307
324
- /**
325
- * @runInSeparateProcess
326
- */
327
308
public function testFilterLimitColQualifierRegex ()
328
309
{
329
310
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -361,9 +342,6 @@ public function testFilterLimitColQualifierRegex()
361
342
$ this ->assertEquals ($ result , trim ($ output ));
362
343
}
363
344
364
- /**
365
- * @runInSeparateProcess
366
- */
367
345
public function testFilterLimitColRange ()
368
346
{
369
347
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -390,9 +368,6 @@ public function testFilterLimitColRange()
390
368
$ this ->assertEquals ($ result , trim ($ output ));
391
369
}
392
370
393
- /**
394
- * @runInSeparateProcess
395
- */
396
371
public function testFilterLimitValueRange ()
397
372
{
398
373
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -413,9 +388,6 @@ public function testFilterLimitValueRange()
413
388
$ this ->assertEquals ($ result , trim ($ output ));
414
389
}
415
390
416
- /**
417
- * @runInSeparateProcess
418
- */
419
391
public function testFilterLimitValueRegex ()
420
392
{
421
393
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -449,7 +421,8 @@ public function testFilterLimitValueRegex()
449
421
}
450
422
451
423
/**
452
- * @runInSeparateProcess
424
+ * @retryAttempts 3
425
+ * @retryDelaySeconds 10
453
426
*/
454
427
public function testFilterLimitTimestampRange ()
455
428
{
@@ -467,9 +440,6 @@ public function testFilterLimitTimestampRange()
467
440
$ this ->assertEquals ($ result , trim ($ output ));
468
441
}
469
442
470
- /**
471
- * @runInSeparateProcess
472
- */
473
443
public function testFilterLimitBlockAll ()
474
444
{
475
445
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -484,9 +454,6 @@ public function testFilterLimitBlockAll()
484
454
$ this ->assertEquals ($ result , trim ($ output ));
485
455
}
486
456
487
- /**
488
- * @runInSeparateProcess
489
- */
490
457
public function testFilterLimitPassAll ()
491
458
{
492
459
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -541,9 +508,6 @@ public function testFilterLimitPassAll()
541
508
$ this ->assertEquals ($ result , trim ($ output ));
542
509
}
543
510
544
- /**
545
- * @runInSeparateProcess
546
- */
547
511
public function testFilterModifyStripValue ()
548
512
{
549
513
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -598,9 +562,6 @@ public function testFilterModifyStripValue()
598
562
$ this ->assertEquals ($ result , trim ($ output ));
599
563
}
600
564
601
- /**
602
- * @runInSeparateProcess
603
- */
604
565
public function testFilterModifyApplyLabel ()
605
566
{
606
567
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -655,9 +616,6 @@ public function testFilterModifyApplyLabel()
655
616
$ this ->assertEquals ($ result , trim ($ output ));
656
617
}
657
618
658
- /**
659
- * @runInSeparateProcess
660
- */
661
619
public function testFilterComposingChain ()
662
620
{
663
621
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -691,9 +649,6 @@ public function testFilterComposingChain()
691
649
$ this ->assertEquals ($ result , trim ($ output ));
692
650
}
693
651
694
- /**
695
- * @runInSeparateProcess
696
- */
697
652
public function testFilterComposingInterleave ()
698
653
{
699
654
$ output = self ::runSnippet ('filter_snippets ' , [
@@ -745,9 +700,6 @@ public function testFilterComposingInterleave()
745
700
$ this ->assertEquals ($ result , trim ($ output ));
746
701
}
747
702
748
- /**
749
- * @runInSeparateProcess
750
- */
751
703
public function testFilterComposingCondition ()
752
704
{
753
705
$ output = self ::runSnippet ('filter_snippets ' , [
0 commit comments