Skip to content
Snippets Groups Projects
Commit 5889ed70 authored by Jonah Husson's avatar Jonah Husson
Browse files

fix test to expect error on no results

parent 4e34901d
Branches
Tags
1 merge request!12Release
......@@ -113,8 +113,8 @@ func TestManager_handleSearch(t *testing.T) {
}
resp = m.handleSearch(&ud.SearchSend{Fact: []*ud.HashFact{{Hash: fid, Type: int32(fact.Nickname)}}}, c)
if resp.Error != "" {
t.Errorf("Failed to handle search: %+v", resp.Error)
if resp.Error == "" {
t.Errorf("Search should have returned error")
}
if len(resp.Contacts) != 0 {
t.Errorf("Should not be able to search with nickname")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment