From 619fa082ac05e7b7e235d579c9af5423b6b765ff Mon Sep 17 00:00:00 2001 From: William Perron Date: Sat, 24 Feb 2024 15:01:02 -0500 Subject: [PATCH] fix failing test --- store_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/store_test.go b/store_test.go index 1269b89..7f8548e 100644 --- a/store_test.go +++ b/store_test.go @@ -101,10 +101,12 @@ func TestStore_Claim(t *testing.T) { t.Errorf("Store.Claim() error = %v, wantErr %v", err, tt.wantErr) } - ae, err := store.LastOf(context.TODO(), EventClaim) - require.NoError(t, err) - assert.Greater(t, ae.Id, lastAudit) - lastAudit = ae.Id + if !tt.wantErr { + ae, err := store.LastOf(context.TODO(), EventClaim) + require.NoError(t, err) + assert.Greater(t, ae.Id, lastAudit) + lastAudit = ae.Id + } }) } }