This commit is contained in:
Sergey Cherepanov authored and Mikhail Iudin committed 2023-01-07 13:35:12 +03:00
1 parent 3c611239b9
commit da4a43d5a0
5 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ jobs:
- name: Vet
run: |
go vet ./...
make vet
- name: Unit tests
run: |
sudo make test-coverage
+4 -1
View File
@@ -1,4 +1,4 @@
.PHONY: proto test test-coverage
.PHONY: proto test test-coverage vet
export GOPRIVATE=github.com/anytypeio
proto:
@@ -16,6 +16,9 @@ proto:
$(GOGO_START) protoc --gogofaster_out=$(PKGMAP):. --go-drpc_out=protolib=github.com/gogo/protobuf:. commonspace/spacesyncproto/protos/*.proto
$(GOGO_START) protoc --gogofaster_out=$(PKGMAP):. --go-drpc_out=protolib=github.com/gogo/protobuf:. commonfile/fileproto/protos/*.proto
vet:
go vet ./...
test:
go test ./... --cover
@@ -395,7 +395,6 @@ func (ot *objectTree) addRawChanges(ctx context.Context, changesPayload RawChang
}
return
}
return
}
func (ot *objectTree) createAddResult(oldHeads []string, mode Mode, treeChangesAdded []*Change, rawChanges []*treechangeproto.RawTreeChangeWithId) (addResult AddResult, err error) {
@@ -133,7 +133,7 @@ func (st *deletionState) CreateDeleteChange(id string, isSnapshot bool) (res []b
}
change := &spacesyncproto.SettingsData{
Content: []*spacesyncproto.SpaceSettingsContent{
{content},
{Value: content},
},
Snapshot: nil,
}
+1 -1
View File
@@ -55,7 +55,7 @@ func TestProvider_ProcessChange(t *testing.T) {
ch := &objecttree.Change{}
ch.Model = &spacesyncproto.SettingsData{
Content: []*spacesyncproto.SpaceSettingsContent{
{&spacesyncproto.SpaceSettingsContent_ObjectDelete{
{Value: &spacesyncproto.SpaceSettingsContent_ObjectDelete{
ObjectDelete: &spacesyncproto.ObjectDelete{Id: "id1"},
}},
},