fix merge issue and gofmt

This commit is contained in:
Victor Vieux 2013-10-18 14:15:24 -07:00
parent 256b7537e3
commit 89fb51f606
5 changed files with 12 additions and 11 deletions

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"

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.")

View file

@ -1216,6 +1216,9 @@ func (srv *Server) ContainerStart(name string, hostConfig *HostConfig) error {
}
childName := parts["name"]
if childName[0] != '/' {
childName = "/" + childName
}
if err := runtime.Link(fmt.Sprintf("/%s", container.ID), childName, parts["alias"]); err != nil {
return err
}

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]
}