summaryrefslogtreecommitdiffstats
path: root/api/file_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/file_test.go')
-rw-r--r--api/file_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file_test.go b/api/file_test.go
index 8b04c732c..8e5fc6f67 100644
--- a/api/file_test.go
+++ b/api/file_test.go
@@ -849,7 +849,7 @@ func TestGetInfoForFilename(t *testing.T) {
date := time.Now().Format("20060102")
- if info := app.GetInfoForFilename(post1, team1.Id, post1.Filenames[0]); info == nil {
+ if info := th.App.GetInfoForFilename(post1, team1.Id, post1.Filenames[0]); info == nil {
t.Fatal("info shouldn't be nil")
} else if info.Id == "" {
t.Fatal("info.Id shouldn't be empty")