From eb1a00ef5f93b19c2d49b26de057ee2c51c09e45 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 16 Nov 2017 15:04:27 -0600 Subject: Reorganize file util functionality (#7848) * reorganize file util functionality * fix api test compilation * fix rebase issue --- app/file_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/file_test.go') diff --git a/app/file_test.go b/app/file_test.go index d86272063..204113782 100644 --- a/app/file_test.go +++ b/app/file_test.go @@ -9,7 +9,6 @@ import ( "time" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" ) func TestGeneratePublicLinkHash(t *testing.T) { @@ -51,7 +50,7 @@ func TestDoUploadFile(t *testing.T) { } else { defer func() { <-th.App.Srv.Store.FileInfo().PermanentDelete(info1.Id) - utils.RemoveFile(info1.Path) + th.App.RemoveFile(info1.Path) }() } @@ -65,7 +64,7 @@ func TestDoUploadFile(t *testing.T) { } else { defer func() { <-th.App.Srv.Store.FileInfo().PermanentDelete(info2.Id) - utils.RemoveFile(info2.Path) + th.App.RemoveFile(info2.Path) }() } @@ -79,7 +78,7 @@ func TestDoUploadFile(t *testing.T) { } else { defer func() { <-th.App.Srv.Store.FileInfo().PermanentDelete(info3.Id) - utils.RemoveFile(info3.Path) + th.App.RemoveFile(info3.Path) }() } @@ -93,7 +92,7 @@ func TestDoUploadFile(t *testing.T) { } else { defer func() { <-th.App.Srv.Store.FileInfo().PermanentDelete(info3.Id) - utils.RemoveFile(info3.Path) + th.App.RemoveFile(info3.Path) }() } -- cgit v1.2.3-1-g7c22