mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Use the readLimit constant in a test.
Instead of copying the value.
This commit is contained in:
parent
d9a83e26b5
commit
2d7cd3f2b7
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ func TestSnowflakeClient(t *testing.T) {
|
||||||
|
|
||||||
Convey("BrokerChannel.Negotiate fails with large read", func() {
|
Convey("BrokerChannel.Negotiate fails with large read", func() {
|
||||||
b, err := NewBrokerChannel("test.broker", "",
|
b, err := NewBrokerChannel("test.broker", "",
|
||||||
&MockTransport{http.StatusOK, make([]byte, 100001, 100001)},
|
&MockTransport{http.StatusOK, make([]byte, readLimit+1)},
|
||||||
false)
|
false)
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
answer, err := b.Negotiate(fakeOffer)
|
answer, err := b.Negotiate(fakeOffer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue