fix merge issue and gofmt

This commit is contained in:
Victor Vieux
2013-10-18 14:15:24 -07:00
parent d596a8a72c
commit fbf85e2e0a
4 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -5,8 +5,8 @@ import (
"errors"
"fmt"
"github.com/dotcloud/docker/iptables"
"github.com/dotcloud/docker/proxy"
"github.com/dotcloud/docker/netlink"
"github.com/dotcloud/docker/proxy"
"github.com/dotcloud/docker/utils"
"log"
"net"
-3
View File
@@ -95,7 +95,6 @@ func init() {
startFds, startGoroutines = utils.GetTotalUsedFds(), runtime.NumGoroutine()
}
func setupBaseImage() {
config := &DaemonConfig{
GraphPath: unitTestStoreBase,
@@ -123,7 +122,6 @@ func setupBaseImage() {
}
}
func spawnGlobalDaemon() {
if globalRuntime != nil {
utils.Debugf("Global runtime already exists. Skipping.")
@@ -132,7 +130,6 @@ func spawnGlobalDaemon() {
globalRuntime = mkRuntime(log.New(os.Stderr, "", 0))
srv := &Server{
runtime: globalRuntime,
enableCors: false,
pullingPool: make(map[string]struct{}),
pushingPool: make(map[string]struct{}),
}
+5 -5
View File
@@ -9,12 +9,12 @@ import (
type State struct {
sync.Mutex
Running bool
Pid int
ExitCode int
StartedAt time.Time
Running bool
Pid int
ExitCode int
StartedAt time.Time
FinishedAt time.Time
Ghost bool
Ghost bool
}
// String returns a human-readable description of the state
+3 -3
View File
@@ -1,15 +1,15 @@
package docker
import (
"github.com/dotcloud/docker/utils"
"fmt"
"github.com/dotcloud/docker/utils"
"io"
"io/ioutil"
"os"
"path"
"runtime"
"strings"
"testing"
"runtime"
)
// This file contains utility functions for docker's unit test suite.
@@ -26,7 +26,7 @@ func mkRuntime(f Fataler) *Runtime {
pc, _, _, _ := runtime.Caller(1)
callerLongName := runtime.FuncForPC(pc).Name()
parts := strings.Split(callerLongName, ".")
callerShortName := parts[len(parts) - 1]
callerShortName := parts[len(parts)-1]
if globalTestID == "" {
globalTestID = GenerateID()[:4]
}