Skip to content

Commit ea625c4

Browse files
committed
Additional environment cleanup in test
Recently some tests kept failing on GitHub with a disk I/O errors on DB write. This was happening in a specific test class with a loop doing quite a few DB write operations in setUp(), causing the subsequent test to fail. Removing the offending test just made the next one fail. Adding additional setUpBeforeClass() in each setup gets rid of the problem.
1 parent ba7f578 commit ea625c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

_test/SearchTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class SearchTest extends StructTest
1616

1717
public function setUp(): void
1818
{
19+
// workaround for recent GitHub disk I/O errors
20+
parent::setUpBeforeClass();
21+
1922
parent::setUp();
2023

2124
$this->loadSchemaJSON('schema1');

0 commit comments

Comments
 (0)