loopback-connector-mysql icon indicating copy to clipboard operation
loopback-connector-mysql copied to clipboard

Tests are failing

Open akshatdubeysf opened this issue 3 years ago • 3 comments

Steps to reproduce

  1. Clone the project.
  2. npm install
  3. setup a mysql server with a fresh db
  4. config the database parameters in env.
  5. npm run test
  6. 7 of the tests cases fail.

Current Behavior

7 test cases fail -

Screenshot from 2021-08-18 15-52-57 Screenshot from 2021-08-18 15-53-22 Screenshot from 2021-08-18 15-53-41 Screenshot from 2021-08-18 15-53-58 Screenshot from 2021-08-18 15-54-12 Screenshot from 2021-08-18 15-54-30 Screenshot from 2021-08-18 15-57-55

Expected Behavior

The test cases should pass by default

Additional Context

MySQL version - Server version: 5.7.35 MySQL Community Server (GPL)

akshatdubeysf avatar Aug 18 '21 10:08 akshatdubeysf

Just had a look at the last pipeline and all tests passed. Can you look at github actions to reference setup

mrmodise avatar Aug 18 '21 16:08 mrmodise

Hi @mrmodise ,

I just checked the github actions, it has the exact same version of MySQL as mine, but the tests are passing in the pipeline, so I suspect it might be a platform difference, I'll have to dig a little deeper.

akshatdubeysf avatar Aug 19 '21 11:08 akshatdubeysf

Its happening due to timezone settings at local machines. Github actions are on UTC and hence works.

samarpanB avatar Jun 26 '23 10:06 samarpanB