diff options
author | Chris <ccbrown112@gmail.com> | 2017-09-06 17:12:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 17:12:54 -0500 |
commit | 1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3 (patch) | |
tree | 2766bacc1f045fa685ca3d8310cd6174d0311d09 /app/license_test.go | |
parent | b84bd21089d305333fa4114b95be70f5ad94ad1b (diff) | |
download | chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.gz chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.tar.bz2 chat-1adfd0e9be69a93c7f63bb7afc742c9fafe31aa3.zip |
app type transition (#7167)
Diffstat (limited to 'app/license_test.go')
-rw-r--r-- | app/license_test.go | 18 |
1 files changed, 11 insertions, 7 deletions
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") } } |