From 0a34d5cc58b88749a9a51b9db4f971fac98353b0 Mon Sep 17 00:00:00 2001 From: z0mbix Date: Sat, 7 Sep 2024 00:02:06 +0100 Subject: [PATCH] Join path correctly --- pkg/provisioner/ansible_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/provisioner/ansible_test.go b/pkg/provisioner/ansible_test.go index f78cd3c..674c341 100644 --- a/pkg/provisioner/ansible_test.go +++ b/pkg/provisioner/ansible_test.go @@ -1,6 +1,7 @@ package provisioner import ( + "path/filepath" "reflect" "testing" ) @@ -47,7 +48,7 @@ func TestAnsibleProvisioner_GetCommand(t *testing.T) { "local", "--inventory", "localhost,", - "tests/playbook.yml", + filepath.Join("tests", "playbook.yml"), }, }, }