提交 e6bc0772 作者: Siraj Ravel

Test for getLocal method in DHT

上级 3f4a4e1e
......@@ -179,6 +179,7 @@ func TestValueGetSet(t *testing.T) {
if string(val) != "world" {
t.Fatalf("Expected 'world' got '%s'", string(val))
}
}
func TestProvides(t *testing.T) {
......@@ -206,6 +207,11 @@ func TestProvides(t *testing.T) {
t.Fatal(err)
}
_, err = dhts[3].getLocal(u.Key("hello"))
if err != nil {
t.Fatal(err)
}
err = dhts[3].Provide(u.Key("hello"))
if err != nil {
t.Fatal(err)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论