mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -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() {
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue