@@ -209,9 +209,10 @@ func TestHandleWebUINodeArtifactsAppliesRetentionConfig(t *testing.T) {
209209 t .Fatalf ("save config: %v" , err )
210210 }
211211 srv .SetConfigPath (cfgPath )
212+ base := time .Now ().UTC ().Add (- 2 * time .Hour )
212213 auditLines := strings .Join ([]string {
213- "{\" time\" :\" 2026-03-09T00:00:00Z \" ,\" node\" :\" edge-a\" ,\" action\" :\" screen_snapshot\" ,\" ok\" :true,\" artifacts\" :[{\" name\" :\" one.txt\" ,\" kind\" :\" text\" ,\" mime_type\" :\" text/plain\" ,\" content_base64\" :\" b25l\" }]}" ,
214- "{\" time\" :\" 2026-03-09T00:01:00Z \" ,\" node\" :\" edge-a\" ,\" action\" :\" screen_snapshot\" ,\" ok\" :true,\" artifacts\" :[{\" name\" :\" two.txt\" ,\" kind\" :\" text\" ,\" mime_type\" :\" text/plain\" ,\" content_base64\" :\" dHdv\" }]}" ,
214+ fmt . Sprintf ( "{\" time\" :%q ,\" node\" :\" edge-a\" ,\" action\" :\" screen_snapshot\" ,\" ok\" :true,\" artifacts\" :[{\" name\" :\" one.txt\" ,\" kind\" :\" text\" ,\" mime_type\" :\" text/plain\" ,\" content_base64\" :\" b25l\" }]}" , base . Format ( time . RFC3339 )) ,
215+ fmt . Sprintf ( "{\" time\" :%q ,\" node\" :\" edge-a\" ,\" action\" :\" screen_snapshot\" ,\" ok\" :true,\" artifacts\" :[{\" name\" :\" two.txt\" ,\" kind\" :\" text\" ,\" mime_type\" :\" text/plain\" ,\" content_base64\" :\" dHdv\" }]}" , base . Add ( time . Minute ). Format ( time . RFC3339 )) ,
215216 }, "\n " ) + "\n "
216217 if err := os .WriteFile (filepath .Join (workspace , "memory" , "nodes-dispatch-audit.jsonl" ), []byte (auditLines ), 0o644 ); err != nil {
217218 t .Fatalf ("write audit: %v" , err )
0 commit comments