From 5cc1679b7f0269b7cf22f667e60bd888d2fcef5b Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Tue, 28 Feb 2023 21:43:42 +1100 Subject: [PATCH] Tidying --- internal/provider/resource_device_test.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/internal/provider/resource_device_test.go b/internal/provider/resource_device_test.go index 605ff3e..2a63acf 100644 --- a/internal/provider/resource_device_test.go +++ b/internal/provider/resource_device_test.go @@ -36,17 +36,11 @@ func allocateDevice(t *testing.T) (string, func()) { continue } - // The USP-RPS and USP-RPS-Pro aren't really switches. - if device.Model == "USPRPS" || device.Model == "USPRPSP" { + // These devices aren't really switches. + if device.Model == "USPRPS" || device.Model == "USPRPSP" || device.Model == "USPPDUHD" || device.Model == "USPPDUP" { continue } - // The USP-PDU-HD and USP-PDU-Pro aren't really switches. - if device.Model == "USPPDUHD" || device.Model == "USPPDUP" { - continue - } - - t.Logf("Device %s: %s", device.MAC, device.Model) devicesAvailable = append(devicesAvailable, device.MAC) } } @@ -152,8 +146,6 @@ func TestAccDevice_switch_portOverrides(t *testing.T) { switchMAC, unallocateDevice := allocateDevice(t) defer unallocateDevice() - t.Logf("Allocated device %s", switchMAC) - resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { preCheck(t)