Fix test code
This commit is contained in:
parent
be77e5f05d
commit
ff58bf721c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue