mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Automated migration using
gty-migrate-from-testify --ignore-build-tags Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
ef01dea893
commit
6be0f70983
183 changed files with 2253 additions and 2199 deletions
|
|
@ -6,8 +6,9 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/docker/docker/daemon/config"
|
||||
"github.com/gotestyourself/gotestyourself/assert"
|
||||
is "github.com/gotestyourself/gotestyourself/assert/cmp"
|
||||
"github.com/spf13/pflag"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestDaemonParseShmSize(t *testing.T) {
|
||||
|
|
@ -16,7 +17,7 @@ func TestDaemonParseShmSize(t *testing.T) {
|
|||
conf := &config.Config{}
|
||||
installConfigFlags(conf, flags)
|
||||
// By default `--default-shm-size=64M`
|
||||
assert.Equal(t, int64(64*1024*1024), conf.ShmSize.Value())
|
||||
assert.NoError(t, flags.Set("default-shm-size", "128M"))
|
||||
assert.Equal(t, int64(128*1024*1024), conf.ShmSize.Value())
|
||||
assert.Check(t, is.Equal(int64(64*1024*1024), conf.ShmSize.Value()))
|
||||
assert.Check(t, flags.Set("default-shm-size", "128M"))
|
||||
assert.Check(t, is.Equal(int64(128*1024*1024), conf.ShmSize.Value()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue