@@ -11,7 +11,8 @@ describe("task events v2", () => {
1111 "stores materialized attributes with explicit insert columns" ,
1212 async ( { clickhouseContainer } ) => {
1313 const ch = new ClickHouse ( { url : clickhouseContainer . getConnectionUrl ( ) , name : "test" } ) ;
14- const now = new Date ( "2026-09-01T10:00:00.000Z" ) ;
14+ const startTime = new Date ( "2026-09-01T10:00:00.000Z" ) ;
15+ const expiresAt = new Date ( Date . now ( ) + 90 * 24 * 60 * 60 * 1000 ) ;
1516 const spanId = "span_ephemeral_attributes" ;
1617
1718 const [ insertError ] = await ch . taskEventsV2 . insert ( [
@@ -21,7 +22,7 @@ describe("task events v2", () => {
2122 project_id : "project_ephemeral_attributes" ,
2223 task_identifier : "ephemeral-attributes" ,
2324 run_id : "run_ephemeral_attributes" ,
24- start_time : clickhouseDate ( now ) ,
25+ start_time : clickhouseDate ( startTime ) ,
2526 duration : "1000000" ,
2627 trace_id : "trace_ephemeral_attributes" ,
2728 span_id : spanId ,
@@ -35,7 +36,7 @@ describe("task events v2", () => {
3536 nested : { enabled : true } ,
3637 } ,
3738 metadata : "{}" ,
38- expires_at : clickhouseDate ( new Date ( now . getTime ( ) + 90 * 24 * 60 * 60 * 1000 ) ) ,
39+ expires_at : clickhouseDate ( expiresAt ) ,
3940 } ,
4041 ] ) ;
4142 expect ( insertError ) . toBeNull ( ) ;
@@ -61,7 +62,6 @@ describe("task events v2", () => {
6162 has_inserted_at : 1 ,
6263 } ,
6364 ] ) ;
64-
6565 }
6666 ) ;
6767} ) ;
0 commit comments