fix: test: flaky TestDeadlineToggling around nulls (#9354)

This commit is contained in:
Aayush Rajasekaran 2022-09-21 17:16:24 -04:00 committed by GitHub
parent 24c536fed0
commit 7a2bc47486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ func TestDeadlineToggling(t *testing.T) {
require.NoError(t, err) require.NoError(t, err)
// cron happened on the same epoch some other condition would have happened // cron happened on the same epoch some other condition would have happened
if di.Open == ts.Height() { if di.Open <= ts.Height() {
act, err := mst.DeadlineCronActive() act, err := mst.DeadlineCronActive()
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, activeIfCron, act) require.Equal(t, activeIfCron, act)