Browse Source

Added disk wipe error in test case

Toby Chui 1 năm trước cách đây
mục cha
commit
eede37dc34
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      mod/disk/raid/raid_test.go

+ 4 - 1
mod/disk/raid/raid_test.go

@@ -20,7 +20,10 @@ func TestCreateRAIDDevice(t *testing.T) {
 	//Format the drives
 	for _, partion := range raidDeviceIds {
 		fmt.Printf("Wiping partition: " + partion)
-		manager.WipeDisk(partion)
+		err := manager.WipeDisk(partion)
+		if err != nil {
+			t.Errorf("Disk wipe error: %v", err)
+		}
 	}
 
 	// Call the function being tested