Skip to content

Commit

Permalink
modified event testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stackman27 committed Sep 3, 2022
1 parent c54cdb6 commit 2b8dcc5
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 384 deletions.
7 changes: 5 additions & 2 deletions app/apptesting/events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package apptesting

import sdk "github.com/cosmos/cosmos-sdk/types"
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)

// AssertEventEmitted asserts that ctx's event manager has emitted the given number of events
// of the given type.
Expand All @@ -13,5 +15,6 @@ func (s *KeeperTestHelper) AssertEventEmitted(ctx sdk.Context, eventTypeExpected
actualEvents = append(actualEvents, event)
}
}
s.Equal(numEventsExpected, len(actualEvents))

s.Require().Equal(numEventsExpected, len(actualEvents))
}
110 changes: 0 additions & 110 deletions x/lockup/keeper/internal/events/emit.go

This file was deleted.

264 changes: 0 additions & 264 deletions x/lockup/keeper/internal/events/emit_test.go

This file was deleted.

Loading

0 comments on commit 2b8dcc5

Please sign in to comment.