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)
} }
if !tt.wantErr {
ae, err := store.LastOf(context.TODO(), EventClaim) ae, err := store.LastOf(context.TODO(), EventClaim)
require.NoError(t, err) require.NoError(t, err)
assert.Greater(t, ae.Id, lastAudit) assert.Greater(t, ae.Id, lastAudit)
lastAudit = ae.Id lastAudit = ae.Id
}
}) })
} }
} }

Loading…
Cancel
Save