Skip to content

Commit

Permalink
Merge pull request #336 from google/test-fix
Browse files Browse the repository at this point in the history
context_text: remove pre-existing test.conf
  • Loading branch information
ebiggers authored Dec 23, 2021
2 parents 0c2b4e6 + f00ddd5 commit 6ec8ee0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions actions/context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ec8ee0

Please sign in to comment.