Use the readLimit constant in a test.

Instead of copying the value.
This commit is contained in:
David Fifield 2021-07-18 16:25:09 -06:00
parent d9a83e26b5
commit 2d7cd3f2b7

View file

@ -246,7 +246,7 @@ func TestSnowflakeClient(t *testing.T) {
Convey("BrokerChannel.Negotiate fails with large read", func() {
b, err := NewBrokerChannel("test.broker", "",
&MockTransport{http.StatusOK, make([]byte, 100001, 100001)},
&MockTransport{http.StatusOK, make([]byte, readLimit+1)},
false)
So(err, ShouldBeNil)
answer, err := b.Negotiate(fakeOffer)