@@ -579,13 +579,14 @@ func TestLongUnixSocketPath_Isolated(t *testing.T) {
579579 // Verify that if the absolute path of the Firecracker unix sockets are longer
580580 // than the max length enforced by the kernel (UNIX_PATH_MAX, usually 108), we
581581 // don't fail (due to the internal implementation using relative paths).
582- // We do this by using the max VMID len (76 chars), which in combination with the
582+ // We do this by using the max VMID len (64 chars), which in combination with the
583583 // default location we store state results in a path like
584- // "/run/firecracker-containerd/default /<vmID>" (with len 112).
584+ // "/run/firecracker-containerd/<namespace> /<vmID>" (with len 112).
585585 const maxUnixSockLen = 108
586- vmID := strings .Repeat ("x" , 76 )
586+ namespace := strings .Repeat ("n" , 20 )
587+ vmID := strings .Repeat ("v" , 64 )
587588
588- ctx := namespaces .WithNamespace (context .Background (), "default" )
589+ ctx := namespaces .WithNamespace (context .Background (), namespace )
589590
590591 pluginClient , err := ttrpcutil .NewClient (containerdSockPath + ".ttrpc" )
591592 require .NoError (t , err , "failed to create ttrpc client" )
@@ -624,7 +625,7 @@ func TestLongUnixSocketPath_Isolated(t *testing.T) {
624625
625626 // double-check that the sockets are at the expected path and that their absolute
626627 // length exceeds 108 bytes
627- shimDir , err := vm .ShimDir (cfg .ShimBaseDir , "default" , vmID )
628+ shimDir , err := vm .ShimDir (cfg .ShimBaseDir , namespace , vmID )
628629 require .NoError (t , err , "failed to get shim dir" )
629630
630631 if request .JailerConfig == nil {
0 commit comments