summaryrefslogtreecommitdiff
path: root/libvirt/volume_def_test.go
diff options
context:
space:
mode:
authorThomas Hipp <thomashipp@gmail.com>2017-11-16 11:09:05 +0100
committerGitHub <noreply@github.com>2017-11-16 11:09:05 +0100
commit189901b858338555651fcae7b3638a7f6d697202 (patch)
treefc287126e6a2bbe8d711597376d786189b47c40c /libvirt/volume_def_test.go
parentea0ef9ca9c140288e33db36839072d8ed84bf67a (diff)
parent6f325fae8cd6d8578b9a3574ca11b718582b5e86 (diff)
downloadterraform-provider-libvirt-189901b858338555651fcae7b3638a7f6d697202.tar
terraform-provider-libvirt-189901b858338555651fcae7b3638a7f6d697202.tar.gz
Merge pull request #237 from MalloZup/test-silent
Dont print debug info if tests are ok
Diffstat (limited to 'libvirt/volume_def_test.go')
-rw-r--r--libvirt/volume_def_test.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/libvirt/volume_def_test.go b/libvirt/volume_def_test.go
index 2460a312..44ccf527 100644
--- a/libvirt/volume_def_test.go
+++ b/libvirt/volume_def_test.go
@@ -52,17 +52,14 @@ func TestVolumeUnmarshal(t *testing.T) {
</volume>
`
- def, err := newDefVolumeFromXML(xmlDesc)
+ _, err := newDefVolumeFromXML(xmlDesc)
if err != nil {
t.Fatalf("could not unmarshall volume definition:\n%s", err)
}
- t.Logf("Unmarshalled volume:\n%s", spew.Sdump(def))
}
func TestDefaultVolumeMarshall(t *testing.T) {
b := newDefVolume()
- prettyB := spew.Sdump(b)
- t.Logf("Parsed default volume:\n%s", prettyB)
buf := new(bytes.Buffer)
enc := xml.NewEncoder(buf)
@@ -70,5 +67,4 @@ func TestDefaultVolumeMarshall(t *testing.T) {
if err := enc.Encode(b); err != nil {
t.Fatalf("could not marshall this:\n%s", spew.Sdump(b))
}
- t.Logf("Marshalled default volume:\n%s", buf.String())
}