From ff6ad03b4a9774b2a87c12445b31f54078c06b55 Mon Sep 17 00:00:00 2001
From: Jamie Anderson <jamieand@amazon.com>
Date: Thu, 4 Mar 2021 17:48:05 +0000
Subject: [PATCH] Skip auth/middleware test that creates sockets

Signed-off-by: Jamie Anderson <jamieand@amazon.com>
---
 pkg/authorization/middleware_unix_test.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pkg/authorization/middleware_unix_test.go b/pkg/authorization/middleware_unix_test.go
index 468cb59..b5e26ac 100644
--- a/pkg/authorization/middleware_unix_test.go
+++ b/pkg/authorization/middleware_unix_test.go
@@ -7,6 +7,7 @@ import (
 	"net/http"
 	"net/http/httptest"
 	"testing"
+	"github.com/docker/docker/testutil"
 
 	"github.com/docker/docker/pkg/plugingetter"
 	"gotest.tools/v3/assert"
@@ -14,6 +15,7 @@ import (
 )
 
 func TestMiddlewareWrapHandler(t *testing.T) {
+	testutil.RequiresRoot(t)
 	server := authZPluginTestServer{t: t}
 	server.start()
 	defer server.stop()
-- 
2.25.0.24.gbc7a3d4

