diff --git a/provisioner/ansible/provisioner_test.go b/provisioner/ansible/provisioner_test.go index 7f8f65296..3104b223c 100644 --- a/provisioner/ansible/provisioner_test.go +++ b/provisioner/ansible/provisioner_test.go @@ -597,8 +597,8 @@ func TestCreateCmdArgs(t *testing.T) { assert.ElementsMatch(t, args, tc.ExpectedArgs, "Args didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedArgs, args) assert.ElementsMatch(t, envVars, tc.ExpectedEnvVars, "EnvVars didn't match expected:\n\n expected: \n%s\n; recieved: \n%s\n", tc.ExpectedEnvVars, envVars) - assert.ElementsMatch(t, args[len(args)-1], p.config.PlaybookFile, - "PlayBook File Not Returned as last element: expected \n%s\n; recieved: \n%s\n", args[len(args)-1], p.config.PlaybookFile) + assert.EqualValues(t, args[len(args)-1], tc.callArgs[2], + "PlayBook File Not Returned as last element: \nexpected: %s\nrecieved: %s\n", args[len(args)-1], tc.callArgs[2]) } }