summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/state_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/state_test.go b/libpod/state_test.go
index 04572fb29..0f5da62e4 100644
--- a/libpod/state_test.go
+++ b/libpod/state_test.go
@@ -45,6 +45,10 @@ func getEmptyBoltState() (s State, p string, p2 string, err error) {
dbPath := filepath.Join(tmpDir, "db.sql")
lockDir := filepath.Join(tmpDir, "locks")
+ if err := os.Mkdir(lockDir, 0755); err != nil {
+ return nil, "", "", err
+ }
+
runtime := new(Runtime)
runtime.config = new(RuntimeConfig)
runtime.config.StorageConfig = storage.StoreOptions{}