fix key_test for peer ID inlining patch
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
May 9, 2018 at 15:16 UTC
a030455f3ddc62f18f856b40244069a5fe80a9ea
1 file changed
+3
-2
core/coreapi/key_test.go
+3
-2
@@ -142,8 +142,9 @@ func TestGenerateType(t *testing.T) {
142
t.Errorf("expected the key to be called 'foo', got '%s'", k.Name())
143
}
144
145
- if !strings.HasPrefix(k.Path().String(), "/ipns/Qm") {
146
- t.Errorf("expected the key to be prefixed with '/ipns/Qm', got '%s'", k.Path().String())
145
+ // Expected to be an inlined identity hash.
146
+ if !strings.HasPrefix(k.Path().String(), "/ipns/12") {
147
+ t.Errorf("expected the key to be prefixed with '/ipns/12', got '%s'", k.Path().String())
148
}
149
}
150