Consolidate the files in client/

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2016-04-25 12:05:42 -04:00
parent 315e242b9c
commit ec6cc96fa1
5 changed files with 41 additions and 50 deletions

23
docker_test.go Normal file
View File

@ -0,0 +1,23 @@
package main
import (
"os"
"testing"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/utils"
)
func TestClientDebugEnabled(t *testing.T) {
defer utils.DisableDebug()
clientFlags.Common.FlagSet.Parse([]string{"-D"})
clientFlags.PostParse()
if os.Getenv("DEBUG") != "1" {
t.Fatal("expected debug enabled, got false")
}
if logrus.GetLevel() != logrus.DebugLevel {
t.Fatalf("expected logrus debug level, got %v", logrus.GetLevel())
}
}