17 lines
368 B
Go
17 lines
368 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
// TEST CASE: Attempting to getPeerStatus() of peer that
|
||
|
// does not exist.
|
||
|
func TestGetPeerStatus(t *testing.T) {
|
||
|
resetDB()
|
||
|
mHash := "USER.RJFSFK8YZ8XGTGKQDMSQCQPQXKH8GPRCDY86YZCFQ1QRKYEF48MG"
|
||
|
status := getPeerStatus(mHash)
|
||
|
if status != peerStatus("unknown") {
|
||
|
t.Fatalf("Expected `unknown`, got %s", status)
|
||
|
}
|
||
|
}
|