From 26ce39adf2195bb0666bdae93c6d23be38c1e227 Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Thu, 31 Aug 2017 10:13:56 -0700 Subject: [PATCH] r/host_virtual_switch: Small test readability fix for missing case Change !expected to expected == false, to be more explicit. --- vsphere/resource_vsphere_host_virtual_switch_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsphere/resource_vsphere_host_virtual_switch_test.go b/vsphere/resource_vsphere_host_virtual_switch_test.go index f4b6638b6..7a688c9e0 100644 --- a/vsphere/resource_vsphere_host_virtual_switch_test.go +++ b/vsphere/resource_vsphere_host_virtual_switch_test.go @@ -144,7 +144,7 @@ func testAccResourceVSphereHostVirtualSwitchExists(expected bool) resource.TestC _, err = hostVSwitchFromName(vars.client, ns, name) if err != nil { - if err.Error() == fmt.Sprintf("could not find virtual switch %s", name) && !expected { + if err.Error() == fmt.Sprintf("could not find virtual switch %s", name) && expected == false { // Expected missing return nil }