Use ShouldBeNil to check for nil values

This commit is contained in:
Cecylia Bocovich 2023-09-19 13:19:27 -04:00
parent e45e8e555b
commit 3a050c6bb3
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90
3 changed files with 26 additions and 26 deletions

View file

@ -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() {