mirror of https://github.com/openclaw/openclaw.git
test: debrand debounce and acp lifecycle fixtures
This commit is contained in:
parent
b95a81498f
commit
c815bddce7
|
|
@ -62,7 +62,7 @@ beforeEach(async () => {
|
|||
|
||||
describe("resetConfiguredBindingTargetInPlace", () => {
|
||||
it("does not resolve configured bindings when ACP metadata already exists", async () => {
|
||||
const sessionKey = "agent:claude:acp:binding:discord:default:9373ab192b2317f4";
|
||||
const sessionKey = "agent:claude:acp:binding:demo-binding:default:9373ab192b2317f4";
|
||||
sessionMetaMocks.readAcpSessionEntry.mockReturnValue({
|
||||
acp: {
|
||||
agent: "claude",
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ describe("createChannelInboundDebouncer", () => {
|
|||
inbound: {
|
||||
debounceMs: 10,
|
||||
byChannel: {
|
||||
slack: 25,
|
||||
"demo-channel": 25,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
@ -40,7 +40,7 @@ describe("createChannelInboundDebouncer", () => {
|
|||
|
||||
const { debounceMs, debouncer } = createChannelInboundDebouncer<{ id: string }>({
|
||||
cfg,
|
||||
channel: "slack",
|
||||
channel: "demo-channel",
|
||||
buildKey: (item) => item.id,
|
||||
onFlush: async (items) => {
|
||||
flushed.push(items.map((entry) => entry.id));
|
||||
|
|
|
|||
Loading…
Reference in New Issue