@@ -274,8 +274,7 @@ describe('useVersionCompatibilityStore', () => {
274274
275275 describe ( 'dismissal persistence' , ( ) => {
276276 it ( 'should save dismissal to reactive storage with expiration' , async ( ) => {
277- const mockNow = 1000000
278- vi . setSystemTime ( mockNow )
277+ const now = Date . now ( )
279278
280279 mockSystemStatsStore . systemStats = {
281280 system : {
@@ -290,7 +289,7 @@ describe('useVersionCompatibilityStore', () => {
290289
291290 // Check that the dismissal was added to reactive storage
292291 expect ( mockDismissalStorage . value ) . toEqual ( {
293- '1.24.0-1.25.0-1.25.0' : mockNow + 7 * 24 * 60 * 60 * 1000
292+ '1.24.0-1.25.0-1.25.0' : now + 7 * 24 * 60 * 60 * 1000
294293 } )
295294 } )
296295
@@ -481,8 +480,7 @@ describe('useVersionCompatibilityStore', () => {
481480 } )
482481
483482 it ( 'should include outdated packages in dismissal key' , async ( ) => {
484- const mockNow = 1000000
485- vi . setSystemTime ( mockNow )
483+ const now = Date . now ( )
486484
487485 mockSystemStatsStore . systemStats = {
488486 system : {
@@ -504,14 +502,11 @@ describe('useVersionCompatibilityStore', () => {
504502
505503 expect ( mockDismissalStorage . value ) . toEqual ( {
506504 '1.24.0-1.24.0-1.24.0-comfyui-workflow-templates@0.9.0->0.9.5' :
507- mockNow + 7 * 24 * 60 * 60 * 1000
505+ now + 7 * 24 * 60 * 60 * 1000
508506 } )
509507 } )
510508
511509 it ( 'should produce the same dismissal key regardless of package order' , async ( ) => {
512- const mockNow = 1000000
513- vi . setSystemTime ( mockNow )
514-
515510 const packageA = {
516511 name : 'comfy-aimdo' ,
517512 installed : '0.1.0' ,
@@ -551,12 +546,11 @@ describe('useVersionCompatibilityStore', () => {
551546 } )
552547
553548 it ( 'should prune expired dismissals when writing a new one' , async ( ) => {
554- const mockNow = 10_000_000
555- vi . setSystemTime ( mockNow )
549+ const now = Date . now ( )
556550
557551 mockDismissalStorage . value = {
558- 'expired-key' : mockNow - 1 ,
559- 'still-valid-key' : mockNow + 5000
552+ 'expired-key' : now - 1 ,
553+ 'still-valid-key' : now + 5000
560554 }
561555
562556 mockSystemStatsStore . systemStats = {
@@ -575,9 +569,6 @@ describe('useVersionCompatibilityStore', () => {
575569 } )
576570
577571 it ( 'should allow dismissal when only package warnings are present' , async ( ) => {
578- const mockNow = 1000000
579- vi . setSystemTime ( mockNow )
580-
581572 mockSystemStatsStore . systemStats = {
582573 system : {
583574 comfyui_version : '' ,
0 commit comments