Skip to content

Commit dc0fb3b

Browse files
jen20bigkraig
authored andcommitted
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"
1 parent 2bffd97 commit dc0fb3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/providers/chef/resource_role_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ func TestAccRole_basic(t *testing.T) {
3232
return fmt.Errorf("wrong description; expected %v, got %v", expected, role.Description)
3333
}
3434

35-
expectedRunList := chefc.RunList{
35+
expectedRunListStrings := []string{
3636
"recipe[[email protected]]",
3737
"recipe[consul]",
3838
"role[foo]",
3939
}
40+
expectedRunList := chefc.RunList(expectedRunListStrings)
4041
if !reflect.DeepEqual(role.RunList, expectedRunList) {
4142
return fmt.Errorf("wrong runlist; expected %#v, got %#v", expectedRunList, role.RunList)
4243
}

0 commit comments

Comments
 (0)