Skip to content
Snippets Groups Projects
Commit 316b2974 authored by Josh Brooks's avatar Josh Brooks
Browse files

Handle test failure

parent b680a5da
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,6 @@ func TestIncorrectKeyFP (t *testing.T) {
pubKeyBits := "S8KXBczy0jins9uS4LgBPt0bkFl8t00MnZmExQ6GcOcu8O7DKgAsNzLU7a" +
"+gMTbIsS995IL/kuFF8wcBaQJBY23095PMSQ/nMuetzhk9HdXxrGIiKBo3C/n4SClpq4H+PoF9XziEVKua8JxGM2o83KiCK3tNUpaZbAAElkjueY7wuD96h4oaA+WV5Nh87cnIZ+fAG0uLve2LSHZ0FBZb3glOpNAOv7PFWkvN2BO37ztOQCXTJe72Y5ReoYn7nWVNxGUh0ilal+BRuJt1GZ7whOGDRE0IXfURIoK2yjyAnyZJWWMhfGsL5S6iL4aXUs03mc8BHKRq3HRjvTE10l3YFA=="
//fingerprint := "8oKh7TYG4KxQcBAymoXPBHSD/uga9pX3Mn/jKhvcD8M="
msgs := []string{
"myKeyId " + pubKeyBits,
......
......@@ -7,7 +7,9 @@
package udb
import (
"fmt"
"gitlab.com/elixxir/client/cmixproto"
"gitlab.com/elixxir/user-discovery-bot/storage"
"testing"
)
......@@ -21,6 +23,7 @@ func TestSearchHappyPath(t *testing.T) {
msgs := []string{
"EMAIL rick@elixxir.io",
}
fmt.Println(storage.UserDiscoveryDb)
msg := NewMessage(msgs[0], cmixproto.Type_UDB_SEARCH)
sl.Hear(msg, false)
......@@ -42,7 +45,6 @@ func TestSearch_InvalidArgs(t *testing.T) {
}
func TestSearch_InvalidArgs_Email(t *testing.T) {
// Load a user
TestRegisterHappyPath(t)
......@@ -58,8 +60,10 @@ func TestSearch_InvalidArgs_Email(t *testing.T) {
sl.Hear(msg, false)
}
// Test invalid search type
func TestSearch_Invalid_Type(t *testing.T) {
defer func() {}()
fingerprint := "8oKh7TYG4KxQcBAymoXPBHSD/uga9pX3Mn/jKhvcD8M="
msgs := []string{
"SEARCH INVALID test",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment