diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2018-07-28 14:27:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-28 14:27:55 +0800 |
commit | 51dc5fa36ed2d5afa72bf630d66693bd99acb916 (patch) | |
tree | bd46add031451bebf3e4a4651a1f3095ed59116d /app/plugin_hooks_test.go | |
parent | 6ac82d5171769bf8d543cb6c017d29c0a4c81621 (diff) | |
download | chat-51dc5fa36ed2d5afa72bf630d66693bd99acb916.tar.gz chat-51dc5fa36ed2d5afa72bf630d66693bd99acb916.tar.bz2 chat-51dc5fa36ed2d5afa72bf630d66693bd99acb916.zip |
[MM-10621] Set createAt timestamp on file upload api call to secure upload order of files (#9170)
* set createAt timestamp on file upload api call to secure upload order of files
* fix test on plugin hooks
Diffstat (limited to 'app/plugin_hooks_test.go')
-rw-r--r-- | app/plugin_hooks_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/plugin_hooks_test.go b/app/plugin_hooks_test.go index 6e8434cab..488d81757 100644 --- a/app/plugin_hooks_test.go +++ b/app/plugin_hooks_test.go @@ -11,6 +11,7 @@ import ( "os/exec" "path/filepath" "testing" + "time" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/plugin" @@ -352,6 +353,7 @@ func TestHookFileWillBeUploaded(t *testing.T) { []io.ReadCloser{ioutil.NopCloser(bytes.NewBufferString("inputfile"))}, []string{"testhook.txt"}, []string{}, + time.Now(), ) assert.Nil(t, err) assert.NotNil(t, response) |