@@ -94,7 +94,7 @@ func Test_alterCollectionTask_Execute(t *testing.T) {
94
94
).Return (errors .New ("err" ))
95
95
meta .On ("ListAliasesByID" , mock .Anything ).Return ([]string {})
96
96
97
- core := newTestCore (withValidProxyManager (), withMeta (meta ))
97
+ core := newTestCore (withValidProxyManager (), withMeta (meta ), withInvalidTsoAllocator () )
98
98
task := & alterCollectionTask {
99
99
baseTask : newBaseTask (context .Background (), core ),
100
100
Req : & milvuspb.AlterCollectionRequest {
@@ -129,7 +129,7 @@ func Test_alterCollectionTask_Execute(t *testing.T) {
129
129
return errors .New ("err" )
130
130
}
131
131
132
- core := newTestCore (withValidProxyManager (), withMeta (meta ), withBroker (broker ))
132
+ core := newTestCore (withValidProxyManager (), withMeta (meta ), withBroker (broker ), withInvalidTsoAllocator () )
133
133
task := & alterCollectionTask {
134
134
baseTask : newBaseTask (context .Background (), core ),
135
135
Req : & milvuspb.AlterCollectionRequest {
@@ -164,7 +164,7 @@ func Test_alterCollectionTask_Execute(t *testing.T) {
164
164
return errors .New ("err" )
165
165
}
166
166
167
- core := newTestCore (withInvalidProxyManager (), withMeta (meta ), withBroker (broker ))
167
+ core := newTestCore (withInvalidProxyManager (), withMeta (meta ), withBroker (broker ), withInvalidTsoAllocator () )
168
168
task := & alterCollectionTask {
169
169
baseTask : newBaseTask (context .Background (), core ),
170
170
Req : & milvuspb.AlterCollectionRequest {
@@ -198,7 +198,7 @@ func Test_alterCollectionTask_Execute(t *testing.T) {
198
198
},
199
199
},
200
200
}, nil )
201
- core := newTestCore (withValidProxyManager (), withMeta (meta ))
201
+ core := newTestCore (withValidProxyManager (), withMeta (meta ), withInvalidTsoAllocator () )
202
202
task := & alterCollectionTask {
203
203
baseTask : newBaseTask (context .Background (), core ),
204
204
Req : & milvuspb.AlterCollectionRequest {
@@ -238,7 +238,8 @@ func Test_alterCollectionTask_Execute(t *testing.T) {
238
238
return nil
239
239
}
240
240
241
- core := newTestCore (withValidProxyManager (), withMeta (meta ), withBroker (broker ))
241
+ core := newTestCore (withValidProxyManager (), withMeta (meta ), withBroker (broker ), withInvalidTsoAllocator ())
242
+
242
243
task := & alterCollectionTask {
243
244
baseTask : newBaseTask (context .Background (), core ),
244
245
Req : & milvuspb.AlterCollectionRequest {
0 commit comments