Skip to content

Commit

Permalink
Assert users have been loaded for all integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezodude committed Sep 21, 2022
1 parent db23fc3 commit 9aef893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/discord_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func (d *discordTester) SecondChannel() Channel {
func (d *discordTester) InitUsers(t *testing.T) {
t.Helper()
d.botUserID = d.findUserID(t, d.cfg.BotName)
assert.NotEmpty(t, d.botUserID, "could not find botUserID with name: %s", d.cfg.BotName)
assert.NotEmpty(t, d.botUserID, "could not find discord botUserID with name: %s", d.cfg.BotName)

d.testerUserID = d.findUserID(t, d.cfg.TesterName)
assert.NotEmpty(t, d.testerUserID, "could not find testerUserID with name: %s", d.cfg.TesterName)
assert.NotEmpty(t, d.testerUserID, "could not find discord testerUserID with name: %s", d.cfg.TesterName)
}

func (d *discordTester) InitChannels(t *testing.T) []func() {
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/slack_driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ func newSlackDriver(slackCfg SlackConfig) (BotDriver, error) {
func (s *slackTester) InitUsers(t *testing.T) {
t.Helper()
s.botUserID = s.findUserID(t, s.cfg.BotName)
assert.NotEmpty(t, s.botUserID, "could not find slack botUserID with name: %s", s.cfg.BotName)

s.testerUserID = s.findUserID(t, s.cfg.TesterName)
assert.NotEmpty(t, s.testerUserID, "could not find slack testerUserID with name: %s", s.cfg.TesterName)
}

func (s *slackTester) InitChannels(t *testing.T) []func() {
Expand Down

0 comments on commit 9aef893

Please sign in to comment.