summaryrefslogtreecommitdiff
path: root/libvirt/volume_def_test.go
diff options
context:
space:
mode:
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())
}