From f00ddd5823bd0e744746a2b778e0c47f430ecabb Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 22 Dec 2021 20:36:28 -0600 Subject: context_text: remove pre-existing test.conf This fixes a test failure in the case where test.conf gets left over. --- actions/context_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'actions') diff --git a/actions/context_test.go b/actions/context_test.go index 4488a6b..7b56d92 100644 --- a/actions/context_test.go +++ b/actions/context_test.go @@ -47,6 +47,7 @@ func setupContext() (ctx *Context, err error) { ConfigFileLocation = filepath.Join(mountpoint, "test.conf") // Should not be able to setup without a config file + os.Remove(ConfigFileLocation) if badCtx, badCtxErr := NewContextFromMountpoint(mountpoint, nil); badCtxErr == nil { badCtx.Mount.RemoveAllMetadata() return nil, fmt.Errorf("created context at %q without config file", badCtx.Mount.Path) -- cgit v1.2.3