weaver-test icon indicating copy to clipboard operation
weaver-test copied to clipboard

DogFoodTests does not correctly check timestamps for logs

Open amumurst opened this issue 4 years ago • 1 comments

Running sbt -mem 8192 test locally this tests fails.

[info] welcome to sbt 1.5.4 (AdoptOpenJDK Java 1.8.0_282)
.....
[info] *************FAILURES**************
[info] weaver.framework.test.DogFoodTests
[info] - test suite outputs logs for failed tests 2s
[info]   Values not equal: (modules/framework/cats/test/src/DogFoodTests.scala:84)
[info] 
[info]   - failure 0ms                                               |  - failure 0ms
[info]     expected (src/main/DogFoodTests.scala:5)                  |    expected (src/main/DogFoodTests.scala:5)
[info]                                                               |  
[info]       [INFO]  [11]:54:35 [DogFoodTests.scala:5] this test     |      [INFO]  [12]:54:35 [DogFoodTests.scala:5] this test
[info]       [ERROR] [11]:54:35 [DogFoodTests.scala:5] has failed    |      [ERROR] [12]:54:35 [DogFoodTests.scala:5] has failed
[info]       [DEBUG] [11]:54:35 [DogFoodTests.scala:5] with context  |      [DEBUG] [12]:54:35 [DogFoodTests.scala:5] with context
[info]           a       -> b                                        |          a       -> b
[info]           token   -> <something>                              |          token   -> <something>
[info]           request -> true                                     |          request -> true

I am located in

Standard time zone:	    UTC/GMT +1:00 hour
Daylight saving time:	    +1:00 hour
Current time zone offset:   UTC/GMT +2:00 hours
Time zone abbreviation:	    CEST

amumurst avatar Jul 08 '21 14:07 amumurst

Timezones, my old nemesis!

I'll have a think on how to make those tests less problematic.

keynmol avatar Aug 25 '21 12:08 keynmol