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:
Patrick East
2019-08-27 16:11:59 -07:00
parent 54b833bff9
commit e46b0cab4e
+1 -1
View File
@@ -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)
}