summaryrefslogtreecommitdiffstats
path: root/api4/system_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/system_test.go')
-rw-r--r--api4/system_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/api4/system_test.go b/api4/system_test.go
index 1677d5724..3afcf633c 100644
--- a/api4/system_test.go
+++ b/api4/system_test.go
@@ -87,13 +87,13 @@ func TestReloadConfig(t *testing.T) {
flag, resp := Client.ReloadConfig()
CheckForbiddenStatus(t, resp)
- if flag == true {
+ if flag {
t.Fatal("should not Reload the config due no permission.")
}
flag, resp = th.SystemAdminClient.ReloadConfig()
CheckNoError(t, resp)
- if flag == false {
+ if !flag {
t.Fatal("should Reload the config")
}
@@ -285,13 +285,13 @@ func TestInvalidateCaches(t *testing.T) {
flag, resp := Client.InvalidateCaches()
CheckForbiddenStatus(t, resp)
- if flag == true {
+ if flag {
t.Fatal("should not clean the cache due no permission.")
}
flag, resp = th.SystemAdminClient.InvalidateCaches()
CheckNoError(t, resp)
- if flag == false {
+ if !flag {
t.Fatal("should clean the cache")
}
}