fix failing test

main
William Perron 9 months ago
parent d52efdce94
commit 619fa082ac
Signed by: wperron
GPG Key ID: BFDB4EF72D73C5F2

@ -101,10 +101,12 @@ func TestStore_Claim(t *testing.T) {
t.Errorf("Store.Claim() error = %v, wantErr %v", err, tt.wantErr) t.Errorf("Store.Claim() error = %v, wantErr %v", err, tt.wantErr)
} }
ae, err := store.LastOf(context.TODO(), EventClaim) if !tt.wantErr {
require.NoError(t, err) ae, err := store.LastOf(context.TODO(), EventClaim)
assert.Greater(t, ae.Id, lastAudit) require.NoError(t, err)
lastAudit = ae.Id assert.Greater(t, ae.Id, lastAudit)
lastAudit = ae.Id
}
}) })
} }
} }

Loading…
Cancel
Save