Merge pull request #6629 from hashicorp/travisbuild
travis builds go 1.11. remove 1.9
This commit is contained in:
commit
7519037562
|
@ -6,8 +6,7 @@ sudo: false
|
|||
language: go
|
||||
|
||||
go:
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- master
|
||||
|
||||
install:
|
||||
|
|
|
@ -472,7 +472,7 @@ func assertTagProperties(c *Config, errs *packer.MultiError) {
|
|||
errs = packer.MultiErrorAppend(errs, fmt.Errorf("the tag name %q exceeds (%d) the 512 character limit", k, len(k)))
|
||||
}
|
||||
if len(*v) > 256 {
|
||||
errs = packer.MultiErrorAppend(errs, fmt.Errorf("the tag name %q exceeds (%d) the 256 character limit", v, len(*v)))
|
||||
errs = packer.MultiErrorAppend(errs, fmt.Errorf("the tag name %q exceeds (%d) the 256 character limit", *v, len(*v)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -586,12 +586,12 @@ func TestConfigShouldAcceptTags(t *testing.T) {
|
|||
|
||||
value := c.AzureTags["tag01"]
|
||||
if *value != "value01" {
|
||||
t.Errorf("expected AzureTags[\"tag01\"] to have value \"value01\", but got %q", value)
|
||||
t.Errorf("expected AzureTags[\"tag01\"] to have value \"value01\", but got %q", *value)
|
||||
}
|
||||
|
||||
value = c.AzureTags["tag02"]
|
||||
if *value != "value02" {
|
||||
t.Errorf("expected AzureTags[\"tag02\"] to have value \"value02\", but got %q", value)
|
||||
t.Errorf("expected AzureTags[\"tag02\"] to have value \"value02\", but got %q", *value)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -124,21 +124,11 @@ func Test_flushes(t *testing.T) {
|
|||
}
|
||||
|
||||
func Test_KeyIntervalNotGiven(t *testing.T) {
|
||||
var codes []string
|
||||
sendCodes := func(c []string) error {
|
||||
codes = c
|
||||
return nil
|
||||
}
|
||||
d := NewPCXTDriver(sendCodes, -1, time.Duration(0))
|
||||
d := NewPCXTDriver(nil, -1, time.Duration(0))
|
||||
assert.Equal(t, d.interval, time.Duration(100)*time.Millisecond)
|
||||
}
|
||||
|
||||
func Test_KeyIntervalGiven(t *testing.T) {
|
||||
var codes []string
|
||||
sendCodes := func(c []string) error {
|
||||
codes = c
|
||||
return nil
|
||||
}
|
||||
d := NewPCXTDriver(sendCodes, -1, time.Duration(5000)*time.Millisecond)
|
||||
d := NewPCXTDriver(nil, -1, time.Duration(5000)*time.Millisecond)
|
||||
assert.Equal(t, d.interval, time.Duration(5000)*time.Millisecond)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue