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

GO-4588 Fix integration test

This commit is contained in:
kirillston 2025-01-14 11:59:44 +03:00
parent 0506887021
commit f768162727
No known key found for this signature in database
GPG key ID: BE4BF014F0ECDFE8

View file

@ -22,7 +22,6 @@ func TestImportFileFromRelation(t *testing.T) {
fileSub := newTestSubscription(t, app, []domain.RelationKey{bundle.RelationKeyId}, []database.FilterRequest{
filterEqualsToInteger(bundle.RelationKeyFileIndexingStatus, model.FileIndexingStatus_Indexed),
filterEqualsToInteger(bundle.RelationKeyResolvedLayout, model.ObjectType_image),
filterEqualsToString(bundle.RelationKeyName, "Saturn"),
filterEqualsToString(bundle.RelationKeyFileMimeType, "image/jpeg"),
filterNotEmpty(bundle.RelationKeyFileId),
@ -85,7 +84,6 @@ func testImportFileFromMarkdown(t *testing.T, path string) {
fileSub := newTestSubscription(t, app, []domain.RelationKey{bundle.RelationKeyId}, []database.FilterRequest{
filterEqualsToInteger(bundle.RelationKeyFileIndexingStatus, model.FileIndexingStatus_Indexed),
filterEqualsToInteger(bundle.RelationKeyResolvedLayout, model.ObjectType_image),
filterEqualsToString(bundle.RelationKeyName, "saturn"), // Name comes from file's name
filterEqualsToString(bundle.RelationKeyFileMimeType, "image/jpeg"),
filterNotEmpty(bundle.RelationKeyFileId),
@ -126,7 +124,6 @@ func testImportObjectWithFileBlock(t *testing.T, path string) {
fileSub := newTestSubscription(t, app, []domain.RelationKey{bundle.RelationKeyId}, []database.FilterRequest{
filterEqualsToInteger(bundle.RelationKeyFileIndexingStatus, model.FileIndexingStatus_Indexed),
filterEqualsToInteger(bundle.RelationKeyResolvedLayout, model.ObjectType_image),
filterEqualsToString(bundle.RelationKeyName, "test_image"),
filterEqualsToString(bundle.RelationKeyFileMimeType, "image/png"),
filterNotEmpty(bundle.RelationKeyFileId),