mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-08 03:57:30 +08:00
fix package
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"clawgo/pkg/bus"
|
||||
"clawgo/pkg/config"
|
||||
"github.com/YspCoder/clawgo/pkg/bus"
|
||||
"github.com/YspCoder/clawgo/pkg/config"
|
||||
)
|
||||
|
||||
type recordingChannel struct {
|
||||
@@ -15,11 +15,11 @@ type recordingChannel struct {
|
||||
sent []bus.OutboundMessage
|
||||
}
|
||||
|
||||
func (r *recordingChannel) Name() string { return "test" }
|
||||
func (r *recordingChannel) Start(ctx context.Context) error { return nil }
|
||||
func (r *recordingChannel) Stop(ctx context.Context) error { return nil }
|
||||
func (r *recordingChannel) IsRunning() bool { return true }
|
||||
func (r *recordingChannel) IsAllowed(senderID string) bool { return true }
|
||||
func (r *recordingChannel) Name() string { return "test" }
|
||||
func (r *recordingChannel) Start(ctx context.Context) error { return nil }
|
||||
func (r *recordingChannel) Stop(ctx context.Context) error { return nil }
|
||||
func (r *recordingChannel) IsRunning() bool { return true }
|
||||
func (r *recordingChannel) IsAllowed(senderID string) bool { return true }
|
||||
func (r *recordingChannel) HealthCheck(ctx context.Context) error { return nil }
|
||||
func (r *recordingChannel) Send(ctx context.Context, msg bus.OutboundMessage) error {
|
||||
r.mu.Lock()
|
||||
@@ -78,7 +78,6 @@ func TestBaseChannel_HandleMessage_ContentHashFallbackDedupe(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func TestDispatchOutbound_DifferentButtonsShouldNotDeduplicate(t *testing.T) {
|
||||
mb := bus.NewMessageBus()
|
||||
mgr, err := NewManager(&config.Config{}, mb)
|
||||
|
||||
Reference in New Issue
Block a user