summaryrefslogtreecommitdiff
path: root/daemon/daemon_unix_test.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2018-12-18 23:41:52 +0100
committerSebastiaan van Stijn <github@gone.nl>2018-12-19 10:24:09 +0100
commitb6e373c5255b871409b90e45150f04b76fdf3a8d (patch)
treeb958dcf5b0385dcbe207fbcdb800fe87b9ca2bc5 /daemon/daemon_unix_test.go
parente278678705c18476ece81bee81d60ba2da640197 (diff)
downloaddocker-b6e373c5255b871409b90e45150f04b76fdf3a8d.tar.gz
Rename verifyContainerResources to verifyPlatformContainerResources
This validation function is platform-specific; rename it to be more explicit. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'daemon/daemon_unix_test.go')
-rw-r--r--daemon/daemon_unix_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/daemon_unix_test.go b/daemon/daemon_unix_test.go
index fed00207a5..c8575ad8da 100644
--- a/daemon/daemon_unix_test.go
+++ b/daemon/daemon_unix_test.go
@@ -270,7 +270,7 @@ func TestNetworkOptions(t *testing.T) {
}
}
-func TestVerifyContainerResources(t *testing.T) {
+func TestVerifyPlatformContainerResources(t *testing.T) {
t.Parallel()
var (
no = false
@@ -354,7 +354,7 @@ func TestVerifyContainerResources(t *testing.T) {
for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
- warnings, err := verifyContainerResources(&tc.resources, &tc.sysInfo, tc.update)
+ warnings, err := verifyPlatformContainerResources(&tc.resources, &tc.sysInfo, tc.update)
assert.NilError(t, err)
for _, w := range tc.expectedWarnings {
assert.Assert(t, is.Contains(warnings, w))