Skip to content

Commit e5e4dea

Browse files
committed
Fix sync as client test
1 parent d0707d8 commit e5e4dea

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

component/multi_sync_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func TestMultiSyncComponent_More(t *testing.T) {
3131
func TestMultiSyncComponent_SyncAsClient(t *testing.T) {
3232
ctx := mock.Anything
3333
mc := initializeTestMultiSyncComponent(context.TODO(), t)
34+
mc.config.MultiSync.Enabled = true
3435
mc.mocks.stores.MultiSyncMock().EXPECT().GetLatest(ctx).Return(database.SyncVersion{
3536
Version: 1,
3637
}, nil)

component/wireset.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ func NewTestMultiSyncComponent(config *config.Config, stores *tests.MockStores,
430430
tagStore: stores.Tag,
431431
fileStore: stores.File,
432432
gitServer: gitServer,
433+
config: config,
433434
}
434435
}
435436

0 commit comments

Comments
 (0)