summaryrefslogtreecommitdiffstats
path: root/api4/elasticsearch_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/elasticsearch_test.go')
-rw-r--r--api4/elasticsearch_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/elasticsearch_test.go b/api4/elasticsearch_test.go
index 768a73ad7..5aae5ebcd 100644
--- a/api4/elasticsearch_test.go
+++ b/api4/elasticsearch_test.go
@@ -9,7 +9,7 @@ import (
func TestElasticsearchTest(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
- defer TearDown()
+ defer th.TearDown()
_, resp := th.Client.TestElasticsearch()
CheckForbiddenStatus(t, resp)
@@ -20,7 +20,7 @@ func TestElasticsearchTest(t *testing.T) {
func TestElasticsearchPurgeIndexes(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
- defer TearDown()
+ defer th.TearDown()
_, resp := th.Client.PurgeElasticsearchIndexes()
CheckForbiddenStatus(t, resp)