1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update test to be consistent

Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume@charmes.net> (github: creack)
This commit is contained in:
Guillaume J. Charmes 2014-03-30 16:00:04 -07:00
parent cff5f0357e
commit 7a50f03fa6
No known key found for this signature in database
GPG key ID: B33E4642CB6E3FF3

View file

@ -350,7 +350,7 @@ func TestStart(t *testing.T) {
if !container.State.IsRunning() {
t.Errorf("Container should be running")
}
if err := container.Start(); err == nil {
if err := container.Start(); err != nil {
t.Fatalf("A running container should be able to be started")
}
@ -385,7 +385,7 @@ func TestCpuShares(t *testing.T) {
if !container.State.IsRunning() {
t.Errorf("Container should be running")
}
if err := container.Start(); err == nil {
if err := container.Start(); err != nil {
t.Fatalf("A running container should be able to be started")
}