update deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-04-04 00:36:46 +03:00
parent 00e71fc9ec
commit aa3702e988
3 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ func TestCallWithoutError(t *testing.T) {
reqbuf := []byte(`{"username": "vtolstov"}`) reqbuf := []byte(`{"username": "vtolstov"}`)
rspbuf := []byte(`{"name": "Vasiliy Tolstov"}`) rspbuf := []byte(`{"name": "Vasiliy Tolstov"}`)
er := c.ExpectRequest(c.NewRequest("github", "Github.LookupUser", reqbuf)) er := c.ExpectRequest(c.NewRequest("github", "Github.LookupUser", reqbuf))
er.WillReturnResponse(rspbuf) er.WillReturnResponse("application/json", rspbuf)
er.WillDelayFor(10 * time.Millisecond) er.WillDelayFor(10 * time.Millisecond)
gh := pb.NewGithubClient("github", c) gh := pb.NewGithubClient("github", c)
@ -49,7 +49,7 @@ func TestCallWithtError(t *testing.T) {
reqbuf := []byte(`{"username": "vtolstov"}`) reqbuf := []byte(`{"username": "vtolstov"}`)
rspbuf := []byte(`{"name": "Vasiliy Tolstov"}`) rspbuf := []byte(`{"name": "Vasiliy Tolstov"}`)
er := c.ExpectRequest(c.NewRequest("github", "Github.LookupUser", reqbuf)) er := c.ExpectRequest(c.NewRequest("github", "Github.LookupUser", reqbuf))
er.WillReturnResponse(rspbuf) er.WillReturnResponse("application/json", rspbuf)
er.WillDelayFor(10 * time.Millisecond) er.WillDelayFor(10 * time.Millisecond)
er.WillReturnError(errors.InternalServerError("test", "internal server error")) er.WillReturnError(errors.InternalServerError("test", "internal server error"))

4
go.mod
View File

@ -1,6 +1,6 @@
module go.unistack.org/micro-tests module go.unistack.org/micro-tests
go 1.18 go 1.19
require ( require (
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
@ -57,7 +57,7 @@ require (
) )
require ( require (
go.unistack.org/micro-client-mock/v3 v3.0.0 go.unistack.org/micro-client-mock/v3 v3.0.1
golang.org/x/net v0.8.0 golang.org/x/net v0.8.0
) )

4
go.sum
View File

@ -869,8 +869,8 @@ go.unistack.org/micro-client-grpc/v3 v3.10.0 h1:RaXxV81s8cjPkZ0CLqJAJGZSpbxb0g7n
go.unistack.org/micro-client-grpc/v3 v3.10.0/go.mod h1:BAmD+1zy0F6fih1arsW/IKp9BJKTkpp22zQfbX3M5E0= go.unistack.org/micro-client-grpc/v3 v3.10.0/go.mod h1:BAmD+1zy0F6fih1arsW/IKp9BJKTkpp22zQfbX3M5E0=
go.unistack.org/micro-client-http/v3 v3.9.0 h1:m2DO59EzwbWFkF3gzvUBAUoKsmH0sZ+hPrwAoDa2EvE= go.unistack.org/micro-client-http/v3 v3.9.0 h1:m2DO59EzwbWFkF3gzvUBAUoKsmH0sZ+hPrwAoDa2EvE=
go.unistack.org/micro-client-http/v3 v3.9.0/go.mod h1:+IwOy028UpLcbRQSo+DZgGPa+CODHFAN7YGA85bdJ1M= go.unistack.org/micro-client-http/v3 v3.9.0/go.mod h1:+IwOy028UpLcbRQSo+DZgGPa+CODHFAN7YGA85bdJ1M=
go.unistack.org/micro-client-mock/v3 v3.0.0 h1:8Q4TXTAfKp3IFwvCHTwPmigCKcPDPNOimNzVb/ysgRM= go.unistack.org/micro-client-mock/v3 v3.0.1 h1:wd10/8B6fioYOoGiHToHkuieLCB2O6yULTnDbUSHdQc=
go.unistack.org/micro-client-mock/v3 v3.0.0/go.mod h1:UwTnK2oPeN7nwXNCwgwlRttCPIH2GldxkQql02eB3Fg= go.unistack.org/micro-client-mock/v3 v3.0.1/go.mod h1:UwTnK2oPeN7nwXNCwgwlRttCPIH2GldxkQql02eB3Fg=
go.unistack.org/micro-codec-grpc/v3 v3.10.0 h1:N8XtNVeYBUcrQfcaY0b+PS7TaI7Wi6g5ZrEDeK77y34= go.unistack.org/micro-codec-grpc/v3 v3.10.0 h1:N8XtNVeYBUcrQfcaY0b+PS7TaI7Wi6g5ZrEDeK77y34=
go.unistack.org/micro-codec-grpc/v3 v3.10.0/go.mod h1:NLU7KfhAA2Es9zI5BuwFFpPW1Y20F5/9/ZX2bK0nils= go.unistack.org/micro-codec-grpc/v3 v3.10.0/go.mod h1:NLU7KfhAA2Es9zI5BuwFFpPW1Y20F5/9/ZX2bK0nils=
go.unistack.org/micro-codec-json/v3 v3.10.0 h1:vSREYR9yM5R9bzCWAY9Wip+sYzLjUB2UIEJAWtpWNbg= go.unistack.org/micro-codec-json/v3 v3.10.0 h1:vSREYR9yM5R9bzCWAY9Wip+sYzLjUB2UIEJAWtpWNbg=