Skip to content

Commit aa12022

Browse files
committed
在更新记录测试中添加延迟,以确保 updated_at 字段的变化
1 parent 334602e commit aa12022

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/drivers/redis/test/index.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ describe('RedisDriver', () => {
131131
email: 'alice@example.com'
132132
});
133133

134+
// Wait a bit to ensure updated_at is different
135+
await new Promise(resolve => setTimeout(resolve, 10));
136+
134137
const updated = await driver.update(TEST_OBJECT, created.id, {
135138
email: 'alice.new@example.com'
136139
});

0 commit comments

Comments
 (0)