Formatting and typo fixes

This commit is contained in:
Mahmood Ali
2018-11-25 11:53:21 -05:00
parent 2aa034e174
commit ef52080b0a
4 changed files with 6 additions and 7 deletions

View File

@@ -148,7 +148,7 @@ func dockerDriverHarness(t *testing.T, cfg map[string]interface{}) *drivers.Driv
Logger: logger,
PluginDir: "./plugins",
InternalPlugins: map[loader.PluginID]*loader.InternalPluginConfig{
PluginID: &loader.InternalPluginConfig{
PluginID: {
Config: cfg,
Factory: func(hclog.Logger) interface{} {
return harness
@@ -985,13 +985,13 @@ func TestDockerDriver_Sysctl_Ulimit(t *testing.T) {
func TestDockerDriver_Sysctl_Ulimit_Errors(t *testing.T) {
brokenConfigs := []map[string]string{
map[string]string{
{
"nofile": "",
},
map[string]string{
{
"nofile": "abc:1234",
},
map[string]string{
{
"nofile": "1234:abc",
},
}

View File

@@ -36,7 +36,6 @@ type taskHandle struct {
waitCh chan struct{}
removeContainerOnExit bool
net *structs.DriverNetwork
imageID string
exitResult *drivers.ExitResult
exitResultLock sync.Mutex

View File

@@ -1740,7 +1740,7 @@ type LinuxResources struct {
CpusetCpus string `protobuf:"bytes,6,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"`
// CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified)
CpusetMems string `protobuf:"bytes,7,opt,name=cpuset_mems,json=cpusetMems,proto3" json:"cpuset_mems,omitempty"`
// PercentTicks is a compatability option for docker and should not be used
// PercentTicks is a compatibility option for docker and should not be used
PercentTicks float64 `protobuf:"fixed64,8,opt,name=PercentTicks,proto3" json:"PercentTicks,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`

View File

@@ -386,7 +386,7 @@ message LinuxResources {
string cpuset_cpus = 6;
// CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified)
string cpuset_mems = 7;
// PercentTicks is a compatability option for docker and should not be used
// PercentTicks is a compatibility option for docker and should not be used
double PercentTicks = 8;
}