add extra check for apply being called iff revert happens

This commit is contained in:
whyrusleeping 2019-12-03 21:24:17 -08:00
parent c456ef4905
commit cb19ca499e

View File

@ -294,6 +294,10 @@ func TestAtDoubleTrigger(t *testing.T) {
fcs.advance(2, 2, nil)
require.False(t, applied)
require.False(t, reverted)
fcs.advance(4, 4, nil)
require.True(t, applied)
require.True(t, reverted)
}
func TestAtNullTrigger(t *testing.T) {