Skip to content

Commit

Permalink
Integration action test (mattermost#28561)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Schumacher <[email protected]>
  • Loading branch information
jopaleti and hanzei authored Oct 8, 2024
1 parent 3466e6f commit 33af22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion server/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ issues:
channels/api4/export_test.go|\
channels/api4/file_test.go|\
channels/api4/import_test.go|\
channels/api4/integration_action_test.go|\
channels/api4/ip_filtering_test.go|\
channels/api4/job_test.go|\
channels/api4/license.go|\
Expand Down
3 changes: 2 additions & 1 deletion server/channels/api4/integration_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func (th *testHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
assert.NotEmpty(th.t, poir.TriggerId)
assert.Equal(th.t, "button", poir.Type)
assert.Equal(th.t, "test-value", poir.Context["test-key"])
w.Write([]byte("{}"))
_, err = w.Write([]byte("{}"))
require.NoError(th.t, err)
w.WriteHeader(200)
}

Expand Down

0 comments on commit 33af22b

Please sign in to comment.