mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
util: Change tempfs file prefix to opa_test
It was `loader_test` but we are using this helper in many more places than just the loader tests. It makes for somewhat confusing results when there are orphaned test files with `loader_test` when they didn't actually come from the loader. Signed-off-by: Patrick East <east.patrick@gmail.com>
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ import (
|
||||
// WithTempFS creates a temporary directory structure and invokes f with the
|
||||
// root directory path.
|
||||
func WithTempFS(files map[string]string, f func(string)) {
|
||||
rootDir, cleanup, err := MakeTempFS("", "loader_test", files)
|
||||
rootDir, cleanup, err := MakeTempFS("", "opa_test", files)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user