2020
2121use Google \Cloud \Bigtable \Mutations ;
2222use PHPUnit \Framework \TestCase ;
23+ use PHPUnitRetry \RetryTrait ;
2324
2425final class FilterTest extends TestCase
2526{
2627 use BigtableTestTrait;
28+ use RetryTrait;
2729
2830 const INSTANCE_ID_PREFIX = 'phpunit-test- ' ;
2931 const TABLE_ID_PREFIX = 'mobile-time-series- ' ;
@@ -84,9 +86,6 @@ public static function tearDownAfterClass(): void
8486 self ::deleteBigtableInstance ();
8587 }
8688
87- /**
88- * @runInSeparateProcess
89- */
9089 public function testFilterLimitRowSample ()
9190 {
9291 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -99,9 +98,6 @@ public function testFilterLimitRowSample()
9998 $ this ->assertContains ($ result , trim ($ output ));
10099 }
101100
102- /**
103- * @runInSeparateProcess
104- */
105101 public function testFilterLimitRowRegex ()
106102 {
107103 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -132,9 +128,6 @@ public function testFilterLimitRowRegex()
132128 $ this ->assertEquals ($ result , trim ($ output ));
133129 }
134130
135- /**
136- * @runInSeparateProcess
137- */
138131 public function testFilterLimitCellsPerCol ()
139132 {
140133 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -189,9 +182,6 @@ public function testFilterLimitCellsPerCol()
189182 $ this ->assertEquals ($ result , trim ($ output ));
190183 }
191184
192- /**
193- * @runInSeparateProcess
194- */
195185 public function testFilterLimitCellsPerRow ()
196186 {
197187 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -233,9 +223,6 @@ public function testFilterLimitCellsPerRow()
233223 $ this ->assertEquals ($ result , trim ($ output ));
234224 }
235225
236- /**
237- * @runInSeparateProcess
238- */
239226 public function testFilterLimitCellsPerRowOffset ()
240227 {
241228 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -276,9 +263,6 @@ public function testFilterLimitCellsPerRowOffset()
276263 $ this ->assertEquals ($ result , trim ($ output ));
277264 }
278265
279- /**
280- * @runInSeparateProcess
281- */
282266 public function testFilterLimitColFamilyRegex ()
283267 {
284268 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -321,9 +305,6 @@ public function testFilterLimitColFamilyRegex()
321305 $ this ->assertEquals ($ result , trim ($ output ));
322306 }
323307
324- /**
325- * @runInSeparateProcess
326- */
327308 public function testFilterLimitColQualifierRegex ()
328309 {
329310 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -361,9 +342,6 @@ public function testFilterLimitColQualifierRegex()
361342 $ this ->assertEquals ($ result , trim ($ output ));
362343 }
363344
364- /**
365- * @runInSeparateProcess
366- */
367345 public function testFilterLimitColRange ()
368346 {
369347 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -390,9 +368,6 @@ public function testFilterLimitColRange()
390368 $ this ->assertEquals ($ result , trim ($ output ));
391369 }
392370
393- /**
394- * @runInSeparateProcess
395- */
396371 public function testFilterLimitValueRange ()
397372 {
398373 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -413,9 +388,6 @@ public function testFilterLimitValueRange()
413388 $ this ->assertEquals ($ result , trim ($ output ));
414389 }
415390
416- /**
417- * @runInSeparateProcess
418- */
419391 public function testFilterLimitValueRegex ()
420392 {
421393 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -449,7 +421,8 @@ public function testFilterLimitValueRegex()
449421 }
450422
451423 /**
452- * @runInSeparateProcess
424+ * @retryAttempts 3
425+ * @retryDelaySeconds 10
453426 */
454427 public function testFilterLimitTimestampRange ()
455428 {
@@ -467,9 +440,6 @@ public function testFilterLimitTimestampRange()
467440 $ this ->assertEquals ($ result , trim ($ output ));
468441 }
469442
470- /**
471- * @runInSeparateProcess
472- */
473443 public function testFilterLimitBlockAll ()
474444 {
475445 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -484,9 +454,6 @@ public function testFilterLimitBlockAll()
484454 $ this ->assertEquals ($ result , trim ($ output ));
485455 }
486456
487- /**
488- * @runInSeparateProcess
489- */
490457 public function testFilterLimitPassAll ()
491458 {
492459 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -541,9 +508,6 @@ public function testFilterLimitPassAll()
541508 $ this ->assertEquals ($ result , trim ($ output ));
542509 }
543510
544- /**
545- * @runInSeparateProcess
546- */
547511 public function testFilterModifyStripValue ()
548512 {
549513 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -598,9 +562,6 @@ public function testFilterModifyStripValue()
598562 $ this ->assertEquals ($ result , trim ($ output ));
599563 }
600564
601- /**
602- * @runInSeparateProcess
603- */
604565 public function testFilterModifyApplyLabel ()
605566 {
606567 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -655,9 +616,6 @@ public function testFilterModifyApplyLabel()
655616 $ this ->assertEquals ($ result , trim ($ output ));
656617 }
657618
658- /**
659- * @runInSeparateProcess
660- */
661619 public function testFilterComposingChain ()
662620 {
663621 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -691,9 +649,6 @@ public function testFilterComposingChain()
691649 $ this ->assertEquals ($ result , trim ($ output ));
692650 }
693651
694- /**
695- * @runInSeparateProcess
696- */
697652 public function testFilterComposingInterleave ()
698653 {
699654 $ output = self ::runSnippet ('filter_snippets ' , [
@@ -745,9 +700,6 @@ public function testFilterComposingInterleave()
745700 $ this ->assertEquals ($ result , trim ($ output ));
746701 }
747702
748- /**
749- * @runInSeparateProcess
750- */
751703 public function testFilterComposingCondition ()
752704 {
753705 $ output = self ::runSnippet ('filter_snippets ' , [
0 commit comments