mirror of https://github.com/docker/docs.git
Merge pull request #648 from liubin/fixtypos
fix some typos in source code
This commit is contained in:
commit
2cb9b8e6fb
|
@ -66,13 +66,13 @@ func TestAffinityFilter(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
assert.Equal(t, result, nodes)
|
||||
|
||||
// Set a constraint that cannot be fullfilled and expect an error back.
|
||||
// Set a constraint that cannot be fulfilled and expect an error back.
|
||||
result, err = f.Filter(&dockerclient.ContainerConfig{
|
||||
Env: []string{"affinity:container==does_not_exsits"},
|
||||
}, nodes)
|
||||
assert.Error(t, err)
|
||||
|
||||
// Set a contraint that can only be filled by a single node.
|
||||
// Set a constraint that can only be filled by a single node.
|
||||
result, err = f.Filter(&dockerclient.ContainerConfig{
|
||||
Env: []string{"affinity:container==container-n0*"},
|
||||
}, nodes)
|
||||
|
@ -80,7 +80,7 @@ func TestAffinityFilter(t *testing.T) {
|
|||
assert.Len(t, result, 1)
|
||||
assert.Equal(t, result[0], nodes[0])
|
||||
|
||||
// This constraint can only be fullfilled by a subset of nodes.
|
||||
// This constraint can only be fulfilled by a subset of nodes.
|
||||
result, err = f.Filter(&dockerclient.ContainerConfig{
|
||||
Env: []string{"affinity:container==container-*"},
|
||||
}, nodes)
|
||||
|
|
|
@ -4,6 +4,6 @@ var (
|
|||
// VERSION should be updated by hand at each release
|
||||
VERSION = "0.2.0"
|
||||
|
||||
// GITCOMMIT will be overritten automatically by the build system
|
||||
// GITCOMMIT will be overwritten automatically by the build system
|
||||
GITCOMMIT = "HEAD"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue