test(datastore/fetch): Makes sure err is not nil
This commit is contained in:
parent
4b6fc63e8c
commit
36efcc9d69
@ -112,7 +112,7 @@ func TestFetchURLMalformed(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
_, err := fetchURL(test.url)
|
||||
if err != nil && err.Error() != test.want {
|
||||
if err == nil || err.Error() != test.want {
|
||||
t.Errorf("Incorrect result\ngot: %v\nwant: %v", err, test.want)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user