Test Failing: Computer Too Fast

🫧 Open on Bubbles A peculiar bug Today I fixed a very interesting bug. The code reads //Segment lineage entries are sorted in chronological order by lineageEntries . entrySet () . stream () . sorted ( Map . Entry . comparingByValue ( Comparator . comparingLong ( LineageEntry :: getTimestamp ) )); The test creates two LineageEntry , then prints them, and ensures they are sorted by time of creation — that is to say the first one created is printed before the second one. It works fine most of the time.... Exce
评论
?
参与讨论