From 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Sep 2017 17:12:54 -0500 Subject: app type transition (#7167) --- app/license_test.go | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'app/license_test.go') diff --git a/app/license_test.go b/app/license_test.go index 07805992a..178954bc9 100644 --- a/app/license_test.go +++ b/app/license_test.go @@ -5,33 +5,37 @@ package app import ( //"github.com/mattermost/platform/model" - "github.com/mattermost/platform/utils" "testing" + + "github.com/mattermost/platform/utils" ) func TestLoadLicense(t *testing.T) { - Setup() + a := Global() + a.Setup() - LoadLicense() + a.LoadLicense() if utils.IsLicensed() { t.Fatal("shouldn't have a valid license") } } func TestSaveLicense(t *testing.T) { - Setup() + a := Global() + a.Setup() b1 := []byte("junk") - if _, err := SaveLicense(b1); err == nil { + if _, err := a.SaveLicense(b1); err == nil { t.Fatal("shouldn't have saved license") } } func TestRemoveLicense(t *testing.T) { - Setup() + a := Global() + a.Setup() - if err := RemoveLicense(); err != nil { + if err := a.RemoveLicense(); err != nil { t.Fatal("should have removed license") } } -- cgit v1.2.3-1-g7c22