From 8f1b9cafc6baab4d5dfe36dff1bfededd24b8daf Mon Sep 17 00:00:00 2001 From: Bartek Plotka Date: Mon, 29 Jul 2019 20:07:01 +0100 Subject: [PATCH] Fixed errors found by lint. Signed-off-by: Bartek Plotka --- storage/remote/codec_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/storage/remote/codec_test.go b/storage/remote/codec_test.go index 4861069f29..2d6c92f823 100644 --- a/storage/remote/codec_test.go +++ b/storage/remote/codec_test.go @@ -221,18 +221,18 @@ func TestNegotiateResponseType(t *testing.T) { testutil.Ok(t, err) testutil.Equals(t, prompb.ReadRequest_STREAMED_XOR_CHUNKS, r) - r, err = NegotiateResponseType([]prompb.ReadRequest_ResponseType{ + r2, err := NegotiateResponseType([]prompb.ReadRequest_ResponseType{ prompb.ReadRequest_SAMPLED, prompb.ReadRequest_STREAMED_XOR_CHUNKS, }) testutil.Ok(t, err) - testutil.Equals(t, prompb.ReadRequest_SAMPLED, r) + testutil.Equals(t, prompb.ReadRequest_SAMPLED, r2) - r, err = NegotiateResponseType([]prompb.ReadRequest_ResponseType{}) + r3, err := NegotiateResponseType([]prompb.ReadRequest_ResponseType{}) testutil.Ok(t, err) - testutil.Equals(t, prompb.ReadRequest_SAMPLED, r) + testutil.Equals(t, prompb.ReadRequest_SAMPLED, r3) - r, err = NegotiateResponseType([]prompb.ReadRequest_ResponseType{20}) + _, err = NegotiateResponseType([]prompb.ReadRequest_ResponseType{20}) testutil.NotOk(t, err, "expected error due to not supported requested response types") testutil.Equals(t, "server does not support any of the requested response types: [20]; supported: map[SAMPLED:{} STREAMED_XOR_CHUNKS:{}]", err.Error()) }