Skip to content

Commit

Permalink
Revert testcase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakghosh committed May 15, 2019
1 parent 93c0384 commit 1a44efd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestSendMessage(t *testing.T) {
assert.NoError(err)
}

func TestMain(m *testing.M) {
func TestMain(t *testing.T) {
assert := assert.New(t)
file, _ := ioutil.TempFile(os.TempDir(), "sensu-handler-slack-")
defer func() {
Expand All @@ -132,7 +132,7 @@ func TestMain(m *testing.M) {
event := types.FixtureEvent("entity1", "check1")
eventJSON, _ := json.Marshal(event)
_, err := file.WriteString(string(eventJSON))
require.NoError(m, err)
require.NoError(t, err)
require.NoError(t, file.Sync())
_, err = file.Seek(0, 0)
require.NoError(t, err)
Expand Down

0 comments on commit 1a44efd

Please sign in to comment.