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:
parent
1a8e634600
commit
4adfdc2a0b
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
BIN
tests/integration/testdata/test_image.png
vendored
Normal file
BIN
tests/integration/testdata/test_image.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 463 KiB |
Loading…
Add table
Add a link
Reference in a new issue