1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

Fix old name

This commit is contained in:
Sergey 2024-08-21 11:14:29 +02:00
parent c100bce3e3
commit d6fe320f0e
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
8 changed files with 45 additions and 46 deletions

View file

@ -56,7 +56,7 @@ func TestImportFileFromRelation(t *testing.T) {
var fileObjectId string
fileSub.waitOneObjectDetailsSet(t, app, func(t *testing.T, msg *pb.EventObjectDetailsSet) {
fileObjectId = msg.Details.GetStringOrDefault(bundle.RelationKeyId, "")
fileObjectId = msg.Details.GetString(bundle.RelationKeyId, "")
assertImageAvailableInGateway(t, app, fileObjectId)
})
objectSub.waitObjectDetailsSetWithPredicate(t, app, func(t *testing.T, msg *pb.EventObjectDetailsSet) bool {
@ -113,7 +113,7 @@ func testImportFileFromMarkdown(t *testing.T, path string) {
return false
})
fileSub.waitOneObjectDetailsSet(t, app, func(t *testing.T, msg *pb.EventObjectDetailsSet) {
fileObjectId := msg.Details.GetStringOrDefault(bundle.RelationKeyId, "")
fileObjectId := msg.Details.GetString(bundle.RelationKeyId, "")
assertImageAvailableInGateway(t, app, fileObjectId)
})
}
@ -154,7 +154,7 @@ func testImportObjectWithFileBlock(t *testing.T, path string) {
return false
})
fileSub.waitOneObjectDetailsSet(t, app, func(t *testing.T, msg *pb.EventObjectDetailsSet) {
fileObjectId := msg.Details.GetStringOrDefault(bundle.RelationKeyId, "")
fileObjectId := msg.Details.GetString(bundle.RelationKeyId, "")
assertImageAvailableInGateway(t, app, fileObjectId)
})
}