Skip to content

Commit

Permalink
nats/task: update test for contructor init
Browse files Browse the repository at this point in the history
This covers the fix included in the previous commit where lastRev
was being set for a deleted task object
  • Loading branch information
joelrebel committed Aug 8, 2024
1 parent 182640e commit 8d903a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ func TestNewNatsConditionTaskRepository(t *testing.T) {
key := condition.TaskKVRepositoryKey(facilityCode, conditionKind, serverID)
_, err := taskRepo.kv.Get(key)
assert.ErrorIs(t, err, nats.ErrKeyNotFound)
// purged task has no revision set
assert.Zero(t, taskRepo.lastRev)
},
},
{
Expand Down

0 comments on commit 8d903a2

Please sign in to comment.