diff options
author | Cecylia Bocovich <cohosh@torproject.org> | 2023-09-19 13:19:27 -0400 |
---|---|---|
committer | Cecylia Bocovich <cohosh@torproject.org> | 2023-09-20 12:34:51 -0400 |
commit | 3a050c6bb3b0b5f419028a5038569e21fcdc9b55 (patch) | |
tree | 4b89174a82ab716191289250b219039ab65f1852 /proxy | |
parent | e45e8e555be16c563a325d8be75a4b47cc0f0131 (diff) | |
download | snowflake-3a050c6bb3b0b5f419028a5038569e21fcdc9b55.tar.gz snowflake-3a050c6bb3b0b5f419028a5038569e21fcdc9b55.zip |
Use ShouldBeNil to check for nil valuesrenovate/github.com-smartystreets-goconvey-1.xmr-origin-165
Diffstat (limited to 'proxy')
-rw-r--r-- | proxy/lib/proxy-go_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/proxy/lib/proxy-go_test.go b/proxy/lib/proxy-go_test.go index 4ff970f..547492b 100644 --- a/proxy/lib/proxy-go_test.go +++ b/proxy/lib/proxy-go_test.go @@ -338,7 +338,7 @@ func TestBrokerInteractions(t *testing.T) { Convey("Proxy connections to broker", t, func() { var err error broker, err = newSignalingServer("localhost", false) - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) tokens = newTokens(0) //Mock peerConnection @@ -359,7 +359,7 @@ func TestBrokerInteractions(t *testing.T) { var err error b, err := messages.EncodePollResponse(sampleOffer, true, "unknown") - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) broker.transport = &MockTransport{ http.StatusOK, b, @@ -373,7 +373,7 @@ func TestBrokerInteractions(t *testing.T) { var err error b := []byte("test") - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) broker.transport = &MockTransport{ http.StatusOK, b, @@ -386,17 +386,17 @@ func TestBrokerInteractions(t *testing.T) { var err error b, err := messages.EncodeAnswerResponse(true) - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) broker.transport = &MockTransport{ http.StatusOK, b, } err = broker.sendAnswer(sampleAnswer, pc) - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) b, err = messages.EncodeAnswerResponse(false) - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) broker.transport = &MockTransport{ http.StatusOK, b, @@ -486,7 +486,7 @@ func TestUtilityFuncs(t *testing.T) { bytes := make([]byte, 6) n, err := c2.Read(bytes) So(n, ShouldEqual, 6) - So(err, ShouldEqual, nil) + So(err, ShouldBeNil) So(bytes, ShouldResemble, []byte("Hello!")) s1.Close() |