From de0a19b6da6b704d63e4c36586f120a6ee6b262a Mon Sep 17 00:00:00 2001
From: Jamie Anderson <jamieand@amazon.com>
Date: Wed, 10 Mar 2021 19:12:49 +0000
Subject: [PATCH] Skip volume store tests that require root

Signed-off-by: Jamie Anderson <jamieand@amazon.com>
---
 volume/service/store_test.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/volume/service/store_test.go b/volume/service/store_test.go
index 5442f45..ef044d0 100644
--- a/volume/service/store_test.go
+++ b/volume/service/store_test.go
@@ -9,6 +9,7 @@ import (
 	"os"
 	"strings"
 	"testing"
+	"github.com/docker/docker/testutil"
 
 	"github.com/docker/docker/volume"
 	volumedrivers "github.com/docker/docker/volume/drivers"
@@ -288,6 +289,7 @@ func TestDefererencePluginOnCreateError(t *testing.T) {
 }
 
 func TestRefDerefRemove(t *testing.T) {
+	testutil.RequiresRoot(t)
 	t.Parallel()
 
 	driverName := "test-ref-deref-remove"
@@ -309,6 +311,7 @@ func TestRefDerefRemove(t *testing.T) {
 }
 
 func TestGet(t *testing.T) {
+	testutil.RequiresRoot(t)
 	t.Parallel()
 
 	driverName := "test-get"
-- 
2.31.0.rc2

