File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,15 @@ import (
16
16
)
17
17
18
18
var testArgs = Args {
19
- Cluster : & mockCluster {},
20
- BotAppID : 12345 ,
21
- BotToken : "Bot appid.token" ,
22
- Intent : dto .IntentGuildAtMessage ,
19
+ Cluster : & mockCluster {},
20
+ BotAppID : 12345 ,
21
+ BotToken : "Bot appid.token" ,
22
+ Intent : dto .IntentGuildAtMessage ,
23
+ WatchInterval : time .Minute ,
23
24
}
24
25
25
26
var testScheduler = & Scheduler {
26
- args : testArgs ,
27
+ args : & testArgs ,
27
28
sessionCtx : nil ,
28
29
localInstance : & mockInstance {name : "127.0.0.1" },
29
30
}
@@ -32,7 +33,7 @@ type mockCluster struct {
32
33
}
33
34
34
35
// RegInstance 注册本地实例
35
- func (m * mockCluster ) RegInstance (ctx context.Context ) (base.Instance , error ) {
36
+ func (m * mockCluster ) RegInstance (ctx context.Context , name string ) (base.Instance , error ) {
36
37
return nil , nil
37
38
}
38
39
You can’t perform that action at this time.
0 commit comments