provider/chef: Fix go vet issues
This is rather hacky but it should get rid of our last remaining go vet warning. This appears to be golang/go#9171, which was closed as "Unfortunate"
This commit is contained in:
parent
a040110c0f
commit
4956b1a3e9
|
@ -32,11 +32,12 @@ func TestAccRole_basic(t *testing.T) {
|
|||
return fmt.Errorf("wrong description; expected %v, got %v", expected, role.Description)
|
||||
}
|
||||
|
||||
expectedRunList := chefc.RunList{
|
||||
expectedRunListStrings := []string{
|
||||
"recipe[terraform@1.0.0]",
|
||||
"recipe[consul]",
|
||||
"role[foo]",
|
||||
}
|
||||
expectedRunList := chefc.RunList(expectedRunListStrings)
|
||||
if !reflect.DeepEqual(role.RunList, expectedRunList) {
|
||||
return fmt.Errorf("wrong runlist; expected %#v, got %#v", expectedRunList, role.RunList)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue