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

GO-2947: Use another testdata

This commit is contained in:
Sergey 2024-02-21 12:50:56 +01:00
parent 1a8e634600
commit 4adfdc2a0b
No known key found for this signature in database
GPG key ID: 3B6BEF79160221C6
2 changed files with 2 additions and 2 deletions

View file

@ -21,14 +21,14 @@ func TestFiles(t *testing.T) {
blockService := getService[*block.Service](app)
objectId, details, err := blockService.UploadFile(ctx, acc.Info.AccountSpaceId, block.FileUploadRequest{
RpcFileUploadRequest: pb.RpcFileUploadRequest{
LocalPath: "../../pkg/lib/mill/testdata/Landscape_8.jpg",
LocalPath: "./testdata/test_image.png",
},
})
require.NoError(t, err)
require.NotEmpty(t, objectId)
assert.Equal(t, "Landscape_8", pbtypes.GetString(details, bundle.RelationKeyName.String()))
assert.Equal(t, "test_image", pbtypes.GetString(details, bundle.RelationKeyName.String()))
assert.NotEmpty(t, pbtypes.GetString(details, bundle.RelationKeyFileId.String()))
assert.NotEmpty(t, pbtypes.GetString(details, bundle.RelationKeyFileMimeType.String()))
assert.True(t, pbtypes.GetInt64(details, bundle.RelationKeySizeInBytes.String()) > 0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 KiB