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:
James Nugent 2016-02-18 09:42:00 -08:00
parent a040110c0f
commit 4956b1a3e9
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}