Change Fprint to Fprintf

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
Gaurav Singh 2020-05-27 22:41:16 -04:00
parent 353140a67a
commit 793dd7fc99

View File

@ -350,7 +350,7 @@ func TestNodeAddresses(t *testing.T) {
mux := http.NewServeMux() mux := http.NewServeMux()
mux.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { mux.Handle("/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, metadataTemplate, test.nodeName, test.ipV4, test.ipV4Public, test.ipV6, test.ipV6Public) fmt.Fprintf(w, metadataTemplate, test.nodeName, test.ipV4, test.ipV4Public, test.ipV6, test.ipV6Public)
})) }))
go func() { go func() {
http.Serve(listener, mux) http.Serve(listener, mux)