@@ -287,7 +287,7 @@ func TestMultipleVMs_Isolated(t *testing.T) {
287
287
},
288
288
}
289
289
290
- testTimeout := 600 * time .Second
290
+ testTimeout := 10 * time .Minute
291
291
ctx , cancel := context .WithTimeout (namespaces .WithNamespace (context .Background (), defaultNamespace ), testTimeout )
292
292
defer cancel ()
293
293
@@ -327,11 +327,6 @@ func TestMultipleVMs_Isolated(t *testing.T) {
327
327
fcClient := fccontrol .NewFirecrackerClient (pluginClient .Client ())
328
328
req := & proto.CreateVMRequest {
329
329
VMID : vmIDStr ,
330
- // Enabling Go Race Detector makes in-microVM binaries heavy in terms of CPU and memory.
331
- MachineCfg : & proto.FirecrackerMachineConfiguration {
332
- VcpuCount : 4 ,
333
- MemSizeMib : 4096 ,
334
- },
335
330
RootDrive : & proto.FirecrackerRootDrive {
336
331
HostPath : rootfsPath ,
337
332
},
@@ -346,6 +341,13 @@ func TestMultipleVMs_Isolated(t *testing.T) {
346
341
},
347
342
ContainerCount : containerCount ,
348
343
JailerConfig : jailerConfig ,
344
+ // In tests, our in-VM agent has Go's race detector,
345
+ // which makes the agent resource-hoggy than its production build
346
+ // So the default VM size (128MB) is too small.
347
+ MachineCfg : & proto.FirecrackerMachineConfiguration {MemSizeMib : 1024 },
348
+ // Because this test starts multiple VMs in parallel, some of them may not start within
349
+ // the default timeout (20 seconds).
350
+ TimeoutSeconds : 60 ,
349
351
}
350
352
351
353
resp , err := fcClient .CreateVM (ctx , req )
0 commit comments