From b94488f32f90083a038055e187d17debd85774f2 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 22 Oct 2022 15:56:23 -0400 Subject: [PATCH] fix: set PLUGIN_PATH for golang tests --- plugins/common/common_test.go | 4 ++++ plugins/config/config_test.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/common/common_test.go b/plugins/common/common_test.go index 6f30e385d..5502d5ad0 100644 --- a/plugins/common/common_test.go +++ b/plugins/common/common_test.go @@ -21,6 +21,10 @@ var ( ) func setupTests() (err error) { + if err := os.Setenv("PLUGIN_PATH", "/var/lib/dokku/plugins"); err != nil { + return err + } + return os.Setenv("PLUGIN_ENABLED_PATH", "/var/lib/dokku/plugins/enabled") } diff --git a/plugins/config/config_test.go b/plugins/config/config_test.go index 769132c80..797e4d2f3 100644 --- a/plugins/config/config_test.go +++ b/plugins/config/config_test.go @@ -19,6 +19,10 @@ var ( ) func setupTests() (err error) { + if err := os.Setenv("PLUGIN_PATH", "/var/lib/dokku/plugins"); err != nil { + return err + } + return os.Setenv("PLUGIN_ENABLED_PATH", "/var/lib/dokku/plugins/enabled") }