You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a test case that uses a database TestCase extension, and it appears that the code is somehow timing-dependent. If I run queries in an ordinary test method, it sometimes sees the inserted data and sometimes an empty database. If I add a usleep(1000) to the beginning of my method, it seems to work OK. The DB is MySQL, and this seems to be limited to MyISAM tables (changing the table type to InnoDB appeared to resolve it).
I'm using PHPUnit v3.4.5, is this something that might have been fixed by a later version?
The text was updated successfully, but these errors were encountered:
I have a test case that uses a database TestCase extension, and it appears that the code is somehow timing-dependent. If I run queries in an ordinary test method, it sometimes sees the inserted data and sometimes an empty database. If I add a usleep(1000) to the beginning of my method, it seems to work OK. The DB is MySQL, and this seems to be limited to MyISAM tables (changing the table type to InnoDB appeared to resolve it).
I'm using PHPUnit v3.4.5, is this something that might have been fixed by a later version?
The text was updated successfully, but these errors were encountered: