You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix FinalTip#hashcode() and TipProviderTest#testGetNextTip() #1148
The test case org.eclipse.tips.core.TipProviderTest#testGetNextTip()
randomly fails because it checks that the read state of a tip after
being set can properly be retrieved. This functionality relies on the
hash code of tips staying the same, but the one for the FinalTip
currently changes if the system time has changed, as it re-calculates
the creation time used for the calculation of the hash code on every
access.
With this change, the creation time for the FinalTip is stored such that
its hash code does not change. This also fixes the according test case.
Fixes#1148
0 commit comments