diff --git a/core/coreapi/key_test.go b/core/coreapi/key_test.go index 6ec279e4b..92d4c8d4a 100644 --- a/core/coreapi/key_test.go +++ b/core/coreapi/key_test.go @@ -32,7 +32,7 @@ func TestListSelf(t *testing.T) { } if keys[0].Path().String() != "/ipns/"+testPeerID { - t.Errorf("expected the key to have path '/ipns/Qmfoo', got '%s'", keys[0].Path().String()) + t.Errorf("expected the key to have path '/ipns/%s', got '%s'", testPeerID, keys[0].Path().String()) } }