Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database setup seems to be timing-dependent #22

Closed
timmartin opened this issue Sep 13, 2010 · 1 comment
Closed

Database setup seems to be timing-dependent #22

timmartin opened this issue Sep 13, 2010 · 1 comment

Comments

@timmartin
Copy link

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?

@sebastianbergmann
Copy link
Owner

Does not look like an issue with DbUnit to me. Besides, such an issue should be filed at http://github.com/sebastianbergmann/dbunit/issues

partikus pushed a commit to zf1s/phpunit that referenced this issue Oct 4, 2022
Remove obsolete 'include-path' from composer.json
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants