Hello there,
I have a few dusk tests, they're slow high level tests, they give me alot of comfort! :D
I can run every single one of these tests in isoloation with --filter, but when I just run php artisan dusk, the first test works, but after that the tests generate SQLSTATE[HY000]: General error: 10 disk I/O error
There's always another SQL error, here's some examples:
(SQL: alter table "users" add column "trial_ends_at" datetime null)
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 10 disk I/O error (SQL: insert into "migrations" ("migration", "batch") values (2018_12_05_184924_create_failed_jobs_table, 1))
Illuminate\Database\QueryException: SQLSTATE[HY000]: General error: 10 disk I/O error (SQL: drop table if exists "cache")
I am testing with sqlite in an in-memory database.
I've been googling, there seem to be other people who are running into similar issues, but none have encountered the same 10 disk I/O error.
As a matter of test I have added the following setUp() and tearDown() to my tests:
(Note: the issue already arose before I implemented the beneath functions)
public function setUp(): void
{
parent::setUp();
foreach (static::$browsers as $browser) {
$browser->driver->manage()->deleteAllCookies();
}
}
public function tearDown(): void
{
parent::tearDown();
}