fix for latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-03 02:24:07 +03:00
parent 848ffcb6d7
commit 751b03d5a8
12 changed files with 214 additions and 60 deletions

View File

@@ -1,6 +1,7 @@
package http_test
import (
"context"
"fmt"
"io/ioutil"
"net/http"
@@ -13,6 +14,7 @@ import (
func TestHTTPServer(t *testing.T) {
reg := memory.NewRegistry()
ctx := context.Background()
// create server
srv := httpsrv.NewServer(server.Registry(reg))
@@ -37,7 +39,7 @@ func TestHTTPServer(t *testing.T) {
}
// lookup server
service, err := reg.GetService(server.DefaultName)
service, err := reg.GetService(ctx, server.DefaultName)
if err != nil {
t.Fatal(err)
}