From 2b698478a6f62f0ba9c53d53fc1172bb86acb982 Mon Sep 17 00:00:00 2001 From: Darwin Liu <76200225+somerandomqaguy@users.noreply.github> Date: Thu, 7 Jan 2021 21:26:32 -0700 Subject: [PATCH] Adjusted QEMU step_run_tests.go to reflect previous changes --- builder/qemu/step_run_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/qemu/step_run_test.go b/builder/qemu/step_run_test.go index e74f8b312..533b5317a 100644 --- a/builder/qemu/step_run_test.go +++ b/builder/qemu/step_run_test.go @@ -105,7 +105,7 @@ func Test_UserOverrides(t *testing.T) { "-fda", "fake_floppy_path", "-name", "myvm", "-netdev", "user,id=user.0,hostfwd=tcp::5000-:0", - "-vnc", ":5905", + "-vnc", ":5", "-machine", "type=,accel="}, tc.Expected...) @@ -416,7 +416,7 @@ func Test_DriveAndDeviceArgs(t *testing.T) { "-fda", "fake_floppy_path", "-name", "", "-netdev", "user,id=user.0,hostfwd=tcp::5000-:0", - "-vnc", ":5905", + "-vnc", ":5", "-machine", "type=,accel=", "-device", ",netdev=user.0"}, tc.Expected...) @@ -453,7 +453,7 @@ func Test_OptionalConfigOptionsGetSet(t *testing.T) { "-fda", "fake_floppy_path", "-name", "MyFancyName", "-netdev", "user,id=user.0,hostfwd=tcp::5000-:0", - "-vnc", ":5905,password", + "-vnc", ":5,password", "-machine", "type=pc,accel=hvf", "-device", ",netdev=user.0", "-drive", "file=/path/to/test.iso,index=0,media=cdrom", @@ -596,7 +596,7 @@ func Test_Defaults(t *testing.T) { "vnc_port": 5959, }, &stepRun{ui: packersdk.TestUi(t)}, - []string{"-vnc", "1.1.1.1:5959"}, + []string{"-vnc", "1.1.1.1:59"}, "no VNC password should be set", }, { @@ -608,7 +608,7 @@ func Test_Defaults(t *testing.T) { "vnc_port": 5959, }, &stepRun{ui: packersdk.TestUi(t)}, - []string{"-vnc", "1.1.1.1:5959,password"}, + []string{"-vnc", "1.1.1.1:59,password"}, "VNC password should be set", }, {