Fix test code

This commit is contained in:
Jan Dittberner 2022-06-04 19:30:58 +02:00
parent be77e5f05d
commit ff58bf721c

View file

@ -86,7 +86,7 @@ func TestDecisionModel_GetNextPendingDecisionDue(t *testing.T) {
err error
)
nextDue, err = dm.NextPendingDue(context.Background())
nextDue, err = dm.NextPendingDue(context.Background(), time.Now().UTC())
assert.NoError(t, err)
assert.Empty(t, nextDue)
@ -103,7 +103,7 @@ func TestDecisionModel_GetNextPendingDecisionDue(t *testing.T) {
_, err = dm.Create(ctx, v, models.VoteTypeMotion, "test motion", "I move that we should test more", time.Now(), due)
require.NoError(t, err)
nextDue, err = dm.NextPendingDue(ctx)
nextDue, err = dm.NextPendingDue(ctx, time.Now().UTC())
assert.NoError(t, err)
assert.NotEmpty(t, nextDue)