Change QMP socket test to join with filepath

This commit is contained in:
Jayson Cofell 2019-07-10 12:55:44 -06:00
parent 8d842645b3
commit f1ad385669
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"testing"
@ -634,7 +635,7 @@ func TestBuilderPrepare_QMP(t *testing.T) {
t.Fatalf("should not have error: %s", err)
}
expected := "not-a-real-directory/packer-foo.monitor"
expected := filepath.Join("not-a-real-directory","packer-foo.monitor")
if !reflect.DeepEqual(b.config.QMPSocketPath, expected) {
t.Fatalf("Bad QMP socket Path: %s", b.config.QMPSocketPath)
}