1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

write space hash on open

This commit is contained in:
Sergey Cherepanov 2023-01-13 19:51:29 +03:00 committed by Mikhail Iudin
parent ccfcc2f399
commit 11d50d087a
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
3 changed files with 8 additions and 2 deletions

View file

@ -46,6 +46,9 @@ func TestDiffService(t *testing.T) {
Id: initId,
Head: "h1h2",
})
hash := "123"
diffMock.EXPECT().Hash().Return(hash)
storageMock.EXPECT().WriteSpaceHash(hash)
pSyncMock.EXPECT().Run()
service.Init([]string{initId}, delState)
})