Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilander committed Jul 16, 2018
1 parent 010ebb1 commit c31ab51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/stretchr/testify/assert"

"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
"github.com/mattermost/mattermost-server/plugin/plugintest"
"github.com/mattermost/mattermost-server/plugin/plugintest/mock"

Expand Down Expand Up @@ -119,7 +120,7 @@ func TestPlugin(t *testing.T) {
assert.Nil(t, err)

w := httptest.NewRecorder()
p.ServeHTTP(w, tc.Request)
p.ServeHTTP(&plugin.Context{}, w, tc.Request)
assert.Equal(t, tc.ExpectedStatusCode, w.Result().StatusCode)
})
}
Expand Down

0 comments on commit c31ab51

Please sign in to comment.