Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-07-16 00:41:10 +03:00
parent 99ebab4260
commit 7bf66d519e
22 changed files with 738 additions and 86 deletions

View File

@@ -141,9 +141,11 @@ func TestHTTPClient(t *testing.T) {
// write response
w.Header().Add("Content-Type", "application/json")
w.Write(b)
_, _ = w.Write(b)
})
go http.Serve(l, mux)
go func() {
_ = http.Serve(l, mux)
}()
if err := reg.Register(ctx, &register.Service{
Name: "test.service",
@@ -257,7 +259,7 @@ func TestHTTPClientStream(t *testing.T) {
}
// write response
rsp.Write(bufrw)
_ = rsp.Write(bufrw)
bufrw.Flush()
reader := bufio.NewReader(conn)
@@ -301,11 +303,13 @@ func TestHTTPClientStream(t *testing.T) {
}
// write response
rsp.Write(bufrw)
_ = rsp.Write(bufrw)
bufrw.Flush()
}
})
go http.Serve(l, mux)
go func() {
_ = http.Serve(l, mux)
}()
if err := reg.Register(ctx, &register.Service{
Name: "test.service",

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// protoc-gen-go-micro version: v3.4.0
// protoc-gen-go-micro version: v3.4.2
// source: github.proto
package pb
@@ -11,6 +11,8 @@ import (
)
var (
GithubName = "Github"
GithubEndpoints = []api.Endpoint{
api.Endpoint{
Name: "Github.LookupUser",

View File

@@ -1,5 +1,5 @@
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
// protoc-gen-go-micro version: v3.4.0
// protoc-gen-go-micro version: v3.4.2
// source: github.proto
package pb