MariaDB test correction
change statistics test (mariadb doesn't have flush_tables) change load data infile disable (MariaDB return a specific error 4166 : ER_LOAD_INFILE_CAPABILITY_DISABLED) ensure load data is enable server side (mysql 8/mariadb 10.5)
error in travis is because of a different error (common.fakeServerPort 32893 was already used) (FakeServer test would probably be better using port 0, then getting resolved port)
Thanks @rusher for setting me on the right track.
https://github.com/MariaDB/mariadb.org-tools/blob/master/buildbot.mariadb.org/dockerfiles/ecofiles/test-mysqljs.sh#L43-L56 is the changes to integration tests that I needed to do to get it successful on all mariadb versions (CI tests: https://buildbot.mariadb.org/#/builders/123).
As such test-statistics.js needs a common.minVersion(connection, 10, 5, 0) and the other tests, test-bad-credentials.js and test-server-timeout-disconnect.js needing version dependent tests.