Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 7, 2023
1 parent e6042ec commit 98c94bb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/eventindexer/repo/event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,25 +272,25 @@ func TestIntegration_Event_FirstByAddressAndEvent(t *testing.T) {
assert.Equal(t, nil, err)

tests := []struct {
name string
address string
event string
wantErr error
wantEvent *eventindexer.Event
name string
address string
event string
wantErr error
wantEventID int
}{
{
"success",
dummyProveEventOpts.Address,
dummyProveEventOpts.Name,
nil,
event,
event.ID,
},
{
"notFound",
dummyProveEventOpts.Address,
"fakeEvent",
nil,
nil,
0,
},
}

Expand All @@ -302,7 +302,7 @@ func TestIntegration_Event_FirstByAddressAndEvent(t *testing.T) {
tt.event,
)
assert.Equal(t, tt.wantErr, err)
assert.Equal(t, tt.wantEvent, found)
assert.Equal(t, tt.wantEventID, found.ID)
})
}
}

0 comments on commit 98c94bb

Please sign in to comment.