mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Use ShouldBeNil to check for nil values
This commit is contained in:
parent
e45e8e555b
commit
3a050c6bb3
3 changed files with 26 additions and 26 deletions
|
@ -553,7 +553,7 @@ func TestInvalidGeoipFile(t *testing.T) {
|
|||
log.Printf("loading geo ip databases returned error: %v", err)
|
||||
}
|
||||
ctx.metrics.UpdateCountryStats("127.0.0.1", "", NATUnrestricted)
|
||||
So(ctx.metrics.geoipdb, ShouldEqual, nil)
|
||||
So(ctx.metrics.geoipdb, ShouldBeNil)
|
||||
|
||||
})
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ func TestMetrics(t *testing.T) {
|
|||
i := &IPC{ctx}
|
||||
|
||||
err := ctx.metrics.LoadGeoipDatabases("test_geoip", "test_geoip6")
|
||||
So(err, ShouldEqual, nil)
|
||||
So(err, ShouldBeNil)
|
||||
|
||||
//Test addition of proxy polls
|
||||
Convey("for proxy polls", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue