-
Bug
-
Resolution: Fixed
-
Major
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_29_STABLE, MOODLE_30_STABLE
-
wip-mdl-52799
-
Maybe a regression of MDL-52060, maybe not...
... today I've been installing a number of (docker, I assume the same happens with normal instances) mariadb phpunit databases... and consistently, the first run always failed this test:
1) core_phpunit_advanced_testcase::test_database_reset
|
Failed asserting that 141000 matches expected 1.
|
|
/Users/stronk7/git_moodle/testing/lib/phpunit/tests/advanced_test.php:178
|
/Users/stronk7/git_moodle/testing/lib/phpunit/classes/advanced_testcase.php:80
|
|
To re-run:
|
vendor/bin/phpunit core_phpunit_advanced_testcase lib/phpunit/tests/advanced_test.php
|
Only happens the first run. Running it again passes ok.
Steps to reproduce:
$ docker run -p 3307:3306 --name mariadb101 -e MYSQL_ROOT_PASSWORD=xxxxxx -e MYSQL_DATABASE=moodle -e MYSQL_USER=xxxxxx -e MYSQL_PASSWORD=xxxxxx -d mariadb:10.1 --innodb_file_per_table=1 --innodb_file_format=Barracuda
|
...
|
...
|
431ade13646f8c56c003232c41633f1279ca020103be2e6dbab4db71a24c7c06
|
|
$ php admin/tool/phpunit/cli/init.php
|
...
|
...
|
PHPUnit test environment setup complete.
|
|
$ vendor/bin/phpunit (fails)
|
....F
|
|
$ vendor/bin/phpunit (passes)
|
.............................................................
|
|
$ docker stop mariadb101
|
mariadb101
|
|
$ docker rm mariadb101
|
mariadb101
|
Have been trying to find a similar issue, but have failed to do so. Not sure if that's known issue. Haven't tried with other databases either.
Ciao
- has a non-specific relationship to
-
MDL-52060 Random sequence used in testing infrastructure should be optional
- Closed