use local ip address for tests

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-07-17 02:30:58 +06:00
parent 7bf66d519e
commit 2c3155b1c7
8 changed files with 24 additions and 25 deletions

View File

@@ -94,6 +94,7 @@ func TestClient(t *testing.T) {
server.Broker(brk),
server.WrapSubscriber(otwrapper.NewServerSubscriberWrapper(otwrapper.WithTracer(tracer))),
server.WrapHandler(otwrapper.NewServerHandlerWrapper(otwrapper.WithTracer(tracer))),
server.Address("127.0.0.1:0"),
)
if err := s.Init(); err != nil {
t.Fatal(err)