core: fix some typos (#10382)

Signed-off-by: crazehang <zhangrenzhong@outlook.com>
This commit is contained in:
crazehang 2024-04-03 19:29:32 +08:00 committed by GitHub
parent b7b6137170
commit efceaec7da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -571,7 +571,7 @@ func (tp *TestSuite) TestAddHashOnly(t *testing.T) {
}
if p.String() != hello {
t.Errorf("unxepected path: %s", p.String())
t.Errorf("unexpected path: %s", p.String())
}
_, err = api.Block().Get(ctx, p)
@ -579,7 +579,7 @@ func (tp *TestSuite) TestAddHashOnly(t *testing.T) {
t.Fatal("expected an error")
}
if !ipld.IsNotFound(err) {
t.Errorf("unxepected error: %s", err.Error())
t.Errorf("unexpected error: %s", err.Error())
}
}