Require no error in tests
This commit is contained in:
parent
93674aeabc
commit
897b4900c2
@ -13,6 +13,7 @@ import (
|
|||||||
storage2 "github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/storage"
|
storage2 "github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/storage"
|
||||||
"github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/ldiff"
|
"github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/ldiff"
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
"storj.io/drpc"
|
"storj.io/drpc"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -77,7 +78,7 @@ func TestDiffSyncer_Sync(t *testing.T) {
|
|||||||
GetTree(gomock.Any(), spaceId, arg).
|
GetTree(gomock.Any(), spaceId, arg).
|
||||||
Return(cache.TreeResult{}, nil)
|
Return(cache.TreeResult{}, nil)
|
||||||
}
|
}
|
||||||
_ = diffSyncer.Sync(ctx)
|
require.NoError(t, diffSyncer.Sync(ctx))
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("diff syncer sync space missing", func(t *testing.T) {
|
t.Run("diff syncer sync space missing", func(t *testing.T) {
|
||||||
@ -104,6 +105,6 @@ func TestDiffSyncer_Sync(t *testing.T) {
|
|||||||
PushSpace(gomock.Any(), newPushSpaceRequestMatcher(spaceId, aclRoot, spaceHeader)).
|
PushSpace(gomock.Any(), newPushSpaceRequestMatcher(spaceId, aclRoot, spaceHeader)).
|
||||||
Return(nil, nil)
|
Return(nil, nil)
|
||||||
|
|
||||||
_ = diffSyncer.Sync(ctx)
|
require.NoError(t, diffSyncer.Sync(ctx))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user