mirror of https://github.com/hashicorp/consul
Merge pull request #4365 from pierresouchay/fix_test_warning
Fixed compilation warning about wrong typepull/4375/head
commit
bd76a34002
|
@ -1198,7 +1198,7 @@ func (b *Builder) expandAddrs(name string, s *string) []net.Addr {
|
||||||
|
|
||||||
x, err := template.Parse(*s)
|
x, err := template.Parse(*s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, s, err))
|
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1237,7 +1237,7 @@ func (b *Builder) expandOptionalAddrs(name string, s *string) []string {
|
||||||
|
|
||||||
x, err := template.Parse(*s)
|
x, err := template.Parse(*s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, s, err))
|
b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -314,7 +314,7 @@ type failer struct {
|
||||||
failed bool
|
failed bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *failer) Log(args ...interface{}) { fmt.Println(args) }
|
func (f *failer) Log(args ...interface{}) { fmt.Println(args...) }
|
||||||
func (f *failer) FailNow() { f.failed = true }
|
func (f *failer) FailNow() { f.failed = true }
|
||||||
|
|
||||||
// waitForAPI waits for only the agent HTTP endpoint to start
|
// waitForAPI waits for only the agent HTTP endpoint to start
|
||||||
|
|
Loading…
Reference in New Issue