From 51dc5fa36ed2d5afa72bf630d66693bd99acb916 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Sat, 28 Jul 2018 14:27:55 +0800 Subject: [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 --- app/plugin_hooks_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/plugin_hooks_test.go') 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) -- cgit v1.2.3-1-g7c22