C-Otto / lnd-manageJ

MIT License
52 stars 11 forks source link

Bug: Test failures on Windows #80

Closed danielbroll closed 1 year ago

danielbroll commented 1 year ago

Describe the bug Several tests fail on windows.

To Reproduce Which commands did you run to reproduce this? gradlew build pitest

Expected behavior All tests are green on the main branch

Additional context Add any other context about the problem here.

lastest version main branch: f0505de0185c621cd7397817f8e24542b16d0c6a

Windows 10 Pro

C-Otto commented 1 year ago

Thanks. Windows is annoying :/ Timers on Windows have a very low resolution. On my Linux machine I get a very small difference, which is rounded down (so that "PT335H59M" is expected). I guess that LocalDateTime.now on Windows returns the same time, without any difference, which seems wrong to me. I need more coffee...

2023-01-01T11:40:56.522623468
2022-12-18T11:40:56.522630851
PT335H59M59.999992617S