Browse Source

Skip ConsoleInputTest::testDataAvailable() on github VM

ADmad 6 years ago
parent
commit
136b9f0bb1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/TestCase/Console/ConsoleInputTest.php

+ 5 - 0
tests/TestCase/Console/ConsoleInputTest.php

@@ -46,6 +46,11 @@ class ConsoleInputTest extends TestCase
             'Skip ConsoleInput tests on Windows as they fail on AppVeyor.'
         );
 
+        $this->skipIf(
+            (bool)env('GITHUB_ACTIONS'),
+            'Skip test for ConsoleInput::dataAvailable() on Github VM as stream_select() incorrectly return 1 even though no data is available on STDIN.'
+        );
+
         $this->assertFalse($this->in->dataAvailable());
     }
 }