Skip to content

Commit

Permalink
fix. test minor
Browse files Browse the repository at this point in the history
  • Loading branch information
imperiuse committed Dec 24, 2020
1 parent 9bceb4b commit b5278e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nats/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (suite *NatsClientTestSuit) Test_RequestReply() {
go func(sendChan <-chan m.DataMock) {
reply := &m.DataMock{}
for request := range sendChan {
request = request
request := request
err := suite.natsClient.Request(ctx, subj, &request, reply)
assert.Nil(suite.T(), err, "Request err")
assert.Equal(suite.T(), replyData, string(reply.Data))
Expand Down Expand Up @@ -249,7 +249,7 @@ func (suite *NatsClientTestSuit) Test_RequestReplyQueue() {
go func(sendChan <-chan m.DataMock) {
reply := &m.DataMock{}
for request := range sendChan {
request = request
request := request
err := suite.natsClient.Request(ctx, subj, &request, reply)
assert.Nil(suite.T(), err, "Request err")
assert.Equal(suite.T(), replyData, string(reply.Data))
Expand Down Expand Up @@ -308,7 +308,7 @@ func (suite *NatsClientTestSuit) Test_BadRequestReply() {
go func(sendChan <-chan m.BadDataMock, done chan<- struct{}) {
reply := &m.DataMock{}
for request := range sendChan {
request = request
request := request
err := suite.natsClient.Request(ctx, subj, &request, reply)
assert.NotNil(suite.T(), err, "Must be err")
assert.Equal(suite.T(), m.ErrBadDataMock, err, "must be err errBadDataMock")
Expand Down

0 comments on commit b5278e8

Please sign in to comment.