mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 08:18:03 +08:00
fix key_test for peer ID inlining patch
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
1089eda84b
commit
a030455f3d
@ -142,8 +142,9 @@ func TestGenerateType(t *testing.T) {
|
||||
t.Errorf("expected the key to be called 'foo', got '%s'", k.Name())
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(k.Path().String(), "/ipns/Qm") {
|
||||
t.Errorf("expected the key to be prefixed with '/ipns/Qm', got '%s'", k.Path().String())
|
||||
// Expected to be an inlined identity hash.
|
||||
if !strings.HasPrefix(k.Path().String(), "/ipns/12") {
|
||||
t.Errorf("expected the key to be prefixed with '/ipns/12', got '%s'", k.Path().String())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user