shithub: hugo

Download patch

ref: be44345272276264719ede32447ce62fa92aa508
parent: beeae6ab69b0cbb4daba7a1044308bd157df77ab
author: bep <[email protected]>
date: Sat Jun 6 16:57:11 EDT 2015

Silence chatty JSON test

--- a/hugolib/siteJSONEncode_test.go
+++ b/hugolib/siteJSONEncode_test.go
@@ -2,7 +2,6 @@
 
 import (
 	"encoding/json"
-	"fmt"
 	"testing"
 )
 
@@ -15,14 +14,11 @@
 	s := createTestSite(MENU_PAGE_SOURCES)
 	testSiteSetup(s, t)
 
-	j, err := json.Marshal(s)
+	_, err := json.Marshal(s)
 	check(t, err)
-	fmt.Println("Site as JSON", string(j))
 
-	p, err := json.Marshal(s.Pages[0])
+	_, err = json.Marshal(s.Pages[0])
 	check(t, err)
-	fmt.Println("Page as JSON", string(p))
-
 }
 
 func check(t *testing.T, err error) {