@@ -346,8 +346,6 @@ func TestSnapshotSaveLoad(t *testing.T) {
346346 t .Logf (" Total Requests: %d" , statsBefore .TotalRequests )
347347 t .Logf (" Total Nodes: %d" , statsBefore .TotalNodes )
348348 t .Logf (" Active Nodes: %d" , statsBefore .ActiveNodes )
349- t .Logf (" Unique Tags: %d" , statsBefore .UniqueTags )
350- t .Logf (" Task Executors: %d" , statsBefore .TaskExecutors )
351349 t .Logf (" Uptime: %d seconds" , statsBefore .UptimeSecs )
352350
353351 // Trigger snapshot
@@ -413,8 +411,6 @@ func TestSnapshotSaveLoad(t *testing.T) {
413411 t .Logf (" Total Requests: %d" , statsAfter .TotalRequests )
414412 t .Logf (" Total Nodes: %d" , statsAfter .TotalNodes )
415413 t .Logf (" Active Nodes: %d" , statsAfter .ActiveNodes )
416- t .Logf (" Unique Tags: %d" , statsAfter .UniqueTags )
417- t .Logf (" Task Executors: %d" , statsAfter .TaskExecutors )
418414 t .Logf (" Trust Links: %d" , statsAfter .TotalTrustLinks )
419415 t .Logf (" Uptime: %d seconds" , statsAfter .UptimeSecs )
420416
@@ -427,37 +423,8 @@ func TestSnapshotSaveLoad(t *testing.T) {
427423 t .Errorf ("TotalNodes not restored: before=%d, after=%d" ,
428424 statsBefore .TotalNodes , statsAfter .TotalNodes )
429425 }
430- if statsAfter .UniqueTags != statsBefore .UniqueTags {
431- t .Errorf ("UniqueTags not restored: before=%d, after=%d" ,
432- statsBefore .UniqueTags , statsAfter .UniqueTags )
433- }
434- if statsAfter .TaskExecutors != statsBefore .TaskExecutors {
435- t .Errorf ("TaskExecutors not restored: before=%d, after=%d" ,
436- statsBefore .TaskExecutors , statsAfter .TaskExecutors )
437- }
438-
439- // Validate nodes are restored
440- if len (statsAfter .Nodes ) != 3 {
441- t .Errorf ("expected 3 nodes, got %d" , len (statsAfter .Nodes ))
442- }
443-
444- // Validate POLO scores are restored
445- poloScores := make (map [int ]bool )
446- for _ , node := range statsAfter .Nodes {
447- poloScores [node .PoloScore ] = true
448- }
449- expectedScores := []int {150 , 45 , 92 }
450- for _ , score := range expectedScores {
451- if ! poloScores [score ] {
452- t .Errorf ("POLO score %d not found in restored nodes" , score )
453- }
454- }
455-
456- // Validate online status (nodes should be stale after restart)
457- for _ , node := range statsAfter .Nodes {
458- if node .Online {
459- t .Logf ("Warning: node %s is online after restart (might be ok)" , node .Address )
460- }
426+ if statsAfter .TotalNodes != 3 {
427+ t .Errorf ("expected 3 nodes, got %d" , statsAfter .TotalNodes )
461428 }
462429
463430 t .Logf ("\n ✅ Snapshot save/load test passed" )
0 commit comments