Fix a test that expects whitespace at the end of the line.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-09-08 15:11:38 -04:00
parent 8f3e3fb6e5
commit e2f7387906
3 changed files with 16 additions and 17 deletions

View File

@ -6,8 +6,8 @@ import (
"sync"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/api/types"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/pkg/stdcopy"
"golang.org/x/net/context"
)

View File

@ -8,8 +8,8 @@ import (
"time"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/api/types"
"github.com/docker/docker/cli/command"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/signal"
"golang.org/x/net/context"

View File

@ -9,6 +9,7 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/pkg/stringid"
"github.com/docker/docker/pkg/testutil/assert"
)
func TestContainerPsContext(t *testing.T) {
@ -316,9 +317,7 @@ size: 0 B
context.context.Containers = containers
context.context.Write()
actual := out.String()
if actual != context.expected {
t.Fatalf("Expected \n%s, got \n%s", context.expected, actual)
}
assert.Equal(t, actual, context.expected)
// Clean buffer
out.Reset()
}