mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
Tests: fix memory-core dreaming timezone drift
This commit is contained in:
@@ -26,6 +26,7 @@ const LIGHT_DREAMING_TEST_CONFIG: OpenClawConfig = {
|
||||
config: {
|
||||
dreaming: {
|
||||
enabled: true,
|
||||
timezone: "UTC",
|
||||
phases: {
|
||||
light: {
|
||||
enabled: true,
|
||||
@@ -55,10 +56,20 @@ function createHarness(config: OpenClawConfig, workspaceDir?: string) {
|
||||
defaults: {
|
||||
...config.agents?.defaults,
|
||||
workspace: workspaceDir,
|
||||
userTimezone: config.agents?.defaults?.userTimezone ?? "UTC",
|
||||
},
|
||||
},
|
||||
}
|
||||
: config;
|
||||
: {
|
||||
...config,
|
||||
agents: {
|
||||
...config.agents,
|
||||
defaults: {
|
||||
...config.agents?.defaults,
|
||||
userTimezone: config.agents?.defaults?.userTimezone ?? "UTC",
|
||||
},
|
||||
},
|
||||
};
|
||||
const pluginConfig = resolveMemoryCorePluginConfig(resolvedConfig) ?? {};
|
||||
const beforeAgentReply = async (
|
||||
event: { cleanedBody: string },
|
||||
|
||||
Reference in New Issue
Block a user