fixed possible bug in test

This commit is contained in:
Pavel 2019-12-13 16:09:09 +03:00
parent e4156e3ffd
commit d2f1a124bc

View File

@ -241,8 +241,7 @@ uf/TQPpjrGW5nxOf94qn6FzV2WSype9BcM5MD7z7rk202Fs7Zqc=
srv := &http.Server{Addr: mockServerAddr, Handler: mux} srv := &http.Server{Addr: mockServerAddr, Handler: mux}
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusCreated) w.WriteHeader(http.StatusCreated)
_, err := io.WriteString(w, "ok") _, _ = io.WriteString(w, "ok")
require.NoError(t.T(), err, "cannot response properly")
}) })
testSkipChan := make(chan error, 1) testSkipChan := make(chan error, 1)