From b5278e89132c85090c21cf538564f3ab1260e4d2 Mon Sep 17 00:00:00 2001 From: Arseny Sazanov Date: Thu, 24 Dec 2020 03:40:38 +0300 Subject: [PATCH] fix. test minor --- nats/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nats/client_test.go b/nats/client_test.go index b98d398..fe16902 100644 --- a/nats/client_test.go +++ b/nats/client_test.go @@ -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)) @@ -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)) @@ -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")