@@ -274,7 +274,7 @@ func TestVirtioDevices(t *testing.T) {
274274 UnixSocketPath : "/tmp/unix.sock" ,
275275 VfkitMagic : true ,
276276 },
277- expectedCmdLine : []string {"--device" , "virtio-net,type=unixgram,path= /tmp/unix.sock,vfkitMagic=on " },
277+ expectedCmdLine : []string {"--device" , "virtio-net,unixSocketPath= /tmp/unix.sock" },
278278 },
279279 "NewVirtioNetWithMacAddress" : {
280280 newDev : func () (VirtioDevice , error ) { return VirtioNetNew ("00:11:22:33:44:55" ) },
@@ -402,7 +402,7 @@ func TestVirtioDevices(t *testing.T) {
402402 UnixSocketPath : "/tmp/test.sock" ,
403403 VfkitMagic : true ,
404404 },
405- expectedCmdLine : []string {"--device" , "virtio-net,type=unixgram,path= /tmp/test.sock,vfkitMagic=on " },
405+ expectedCmdLine : []string {"--device" , "virtio-net,unixSocketPath= /tmp/test.sock" },
406406 },
407407 "VirtioNetDefaultVfkitMagic" : {
408408 newDev : func () (VirtioDevice , error ) {
@@ -412,7 +412,7 @@ func TestVirtioDevices(t *testing.T) {
412412 UnixSocketPath : "/tmp/default.sock" ,
413413 VfkitMagic : true ,
414414 },
415- expectedCmdLine : []string {"--device" , "virtio-net,type=unixgram,path= /tmp/default.sock,vfkitMagic=on " },
415+ expectedCmdLine : []string {"--device" , "virtio-net,unixSocketPath= /tmp/default.sock" },
416416 },
417417 "VirtioNetUnixSocketPath" : {
418418 newDev : func () (VirtioDevice , error ) {
@@ -422,7 +422,7 @@ func TestVirtioDevices(t *testing.T) {
422422 UnixSocketPath : "/tmp/socket.sock" ,
423423 VfkitMagic : true ,
424424 },
425- expectedCmdLine : []string {"--device" , "virtio-net,type=unixgram,path= /tmp/socket.sock,vfkitMagic=on " },
425+ expectedCmdLine : []string {"--device" , "virtio-net,unixSocketPath= /tmp/socket.sock" },
426426 },
427427 "VirtioNetUnixSocketPathWithVfkitMagicOff" : {
428428 newDev : func () (VirtioDevice , error ) {
@@ -466,7 +466,7 @@ func TestVirtioDevices(t *testing.T) {
466466 UnixSocketPath : "/tmp/test.sock" ,
467467 VfkitMagic : true ,
468468 },
469- expectedCmdLine : []string {"--device" , "virtio-net,type=unixgram,path= /tmp/test.sock,vfkitMagic=on " },
469+ expectedCmdLine : []string {"--device" , "virtio-net,unixSocketPath= /tmp/test.sock" },
470470 },
471471 }
472472 t .Run ("virtio-devices" , func (t * testing.T ) {
0 commit comments