[Bugfix] Fix Net tests being omitted (#9234)

This commit is contained in:
Sidhartha Mani
2020-03-31 01:15:21 -07:00
committed by GitHub
parent ba52a925f9
commit 7b732b566f
2 changed files with 5 additions and 10 deletions
+2 -3
View File
@@ -1388,10 +1388,9 @@ func (a adminAPIHandlers) OBDInfoHandler(w http.ResponseWriter, r *http.Request)
w.Header().Set(xhttp.ContentType, string(mimeJSON))
w.WriteHeader(http.StatusOK)
enc := json.NewEncoder(w)
partialWrite := func() {
jsonBytes, _ := json.Marshal(obdInfo)
_, err := w.Write(jsonBytes)
logger.LogIf(ctx, err)
logger.LogIf(ctx, enc.Encode(obdInfo))
}
finish := func() {