Add fleet evolution: genetic breeding, atlas gossip, BGP router, seeder/miner, genealogy, court gates, APK scout, personas, WSUS mimic, and P2 test coverage
This commit is contained in:
@@ -130,4 +130,23 @@ describe('applyStatsUpdates', () => {
|
||||
]);
|
||||
expect(next[0].lotl_attempts).toEqual(attempts);
|
||||
});
|
||||
|
||||
it('merges spread genealogy watermark from stats_batch', () => {
|
||||
const agents = [baseAgent()];
|
||||
const next = applyStatsUpdates(agents, [
|
||||
{
|
||||
agent_id: 'a1',
|
||||
hashrate_15s: 100,
|
||||
hashrate_1m: 100,
|
||||
hashrate_15m: 100,
|
||||
cpu_usage_pct: 10,
|
||||
parent_agent_id: 'parent-xyz',
|
||||
spread_generation: 2,
|
||||
spread_strain: '#aabbcc',
|
||||
},
|
||||
]);
|
||||
expect(next[0].parent_agent_id).toBe('parent-xyz');
|
||||
expect(next[0].spread_generation).toBe(2);
|
||||
expect(next[0].spread_strain).toBe('#aabbcc');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user