Skip to content

Commit ff05ab7

Browse files
committed
UpdateGuestDrive() and UpdateGuestNetworkInterfaceRateLimit() don't work pre-boot
These methods use PATCH internally, which no longer work pre-boot. Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent 1c29a7f commit ff05ab7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

machine_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,14 +358,14 @@ func TestMicroVMExecution(t *testing.T) {
358358
t.Run("SetMetadata", func(t *testing.T) { testSetMetadata(ctx, t, m) })
359359
t.Run("UpdateMetadata", func(t *testing.T) { testUpdateMetadata(ctx, t, m) })
360360
t.Run("GetMetadata", func(t *testing.T) { testGetMetadata(ctx, t, m) }) // Should be after testSetMetadata and testUpdateMetadata
361-
t.Run("TestUpdateGuestDrive", func(t *testing.T) { testUpdateGuestDrive(ctx, t, m) })
362-
t.Run("TestUpdateGuestNetworkInterface", func(t *testing.T) { testUpdateGuestNetworkInterface(ctx, t, m) })
363361
t.Run("TestStartInstance", func(t *testing.T) { testStartInstance(ctx, t, m) })
364362

365363
// Let the VMM start and stabilize...
366364
timer := time.NewTimer(5 * time.Second)
367365
select {
368366
case <-timer.C:
367+
t.Run("TestUpdateGuestDrive", func(t *testing.T) { testUpdateGuestDrive(ctx, t, m) })
368+
t.Run("TestUpdateGuestNetworkInterface", func(t *testing.T) { testUpdateGuestNetworkInterface(ctx, t, m) })
369369
t.Run("TestShutdown", func(t *testing.T) { testShutdown(ctx, t, m) })
370370
case <-exitchannel:
371371
// if we've already exited, there's no use waiting for the timer

0 commit comments

Comments
 (0)