mirror of
https://github.com/retailcrm/mg-transport-core.git
synced 2024-11-22 13:16:04 +03:00
fixed possible bug in test
This commit is contained in:
parent
e4156e3ffd
commit
d2f1a124bc
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user