commit 2d7cd3f2b7d06094c0e2810441ba324c9dc37689
Author: David Fifield <david(a)bamsoftware.com>
Date: Sun Jul 18 16:25:09 2021 -0600
Use the readLimit constant in a test.
Instead of copying the value.
---
client/lib/lib_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/lib/lib_test.go b/client/lib/lib_test.go
index daeeaf9..c31a1a6 100644
--- a/client/lib/lib_test.go
+++ b/client/lib/lib_test.go
@@ -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)