Skip to content

Commit d667761

Browse files
committed
remove fmt.Printf calls from tests
1 parent 319551a commit d667761

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libvirt/helpers_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ func testAccCheckLibvirtNetworkDhcpStatus(name string, expectedDhcpStatus string
231231
for _, ips := range networkDef.IPs {
232232
// &libvirtxml.NetworkDHCP{..} should be nil when dhcp is disabled
233233
if ips.DHCP != nil {
234-
fmt.Printf("%#v", ips.DHCP)
235234
return fmt.Errorf("the network should have DHCP disabled")
236235
}
237236
}
@@ -261,7 +260,6 @@ func testAccCheckLibvirtNetworkBridge(resourceName string, bridgeName string) re
261260
}
262261

263262
if networkDef.Bridge.Name != bridgeName {
264-
fmt.Printf("%#v", networkDef)
265263
return fmt.Errorf("fail: network brigde property were not set correctly")
266264
}
267265

libvirt/resource_libvirt_cloud_init_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package libvirt
22

33
import (
44
"fmt"
5+
"log"
56
"testing"
67

78
libvirt "github.com/digitalocean/go-libvirt"
@@ -193,7 +194,7 @@ func testAccCheckCloudInitVolumeExists(volumeName string, volume *libvirt.Storag
193194
}
194195

195196
if retrievedVol.Key != cikey {
196-
fmt.Printf("retrievedVol.Key is: %s \ncloudinit key is %s", retrievedVol.Key, cikey)
197+
log.Printf("[DEBUG]: retrievedVol.Key is: %s \ncloudinit key is %s", retrievedVol.Key, cikey)
197198
return fmt.Errorf("Resource ID and cloudinit volume key does not match")
198199
}
199200

0 commit comments

Comments
 (0)