提交 a030455f 作者: Steven Allen

fix key_test for peer ID inlining patch

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 1089eda8
...@@ -142,8 +142,9 @@ func TestGenerateType(t *testing.T) { ...@@ -142,8 +142,9 @@ func TestGenerateType(t *testing.T) {
t.Errorf("expected the key to be called 'foo', got '%s'", k.Name()) t.Errorf("expected the key to be called 'foo', got '%s'", k.Name())
} }
if !strings.HasPrefix(k.Path().String(), "/ipns/Qm") { // Expected to be an inlined identity hash.
t.Errorf("expected the key to be prefixed with '/ipns/Qm', got '%s'", k.Path().String()) if !strings.HasPrefix(k.Path().String(), "/ipns/12") {
t.Errorf("expected the key to be prefixed with '/ipns/12', got '%s'", k.Path().String())
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论