mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Comment out calls to httptest.Server.Close() to work around
https://github.com/golang/go/issues/12262 . See #19254 for more details. This change should be reverted when we upgrade to Go 1.6.
This commit is contained in:
@@ -212,6 +212,7 @@ func (f *fileHandler) ServeHTTP(res http.ResponseWriter, req *http.Request) {
|
||||
|
||||
func TestReadConfigData(t *testing.T) {
|
||||
httpData := []byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
|
||||
// TODO: Close() this server when fix #19254
|
||||
server := httptest.NewServer(&fileHandler{data: httpData})
|
||||
|
||||
fileData := []byte{11, 12, 13, 14, 15, 16, 17, 18, 19}
|
||||
|
||||
Reference in New Issue
Block a user