@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Loads lib/agent-web-fetch.js in a VM (same bundle shape as /bin/agent preamble).
|
||||
* Loads lib/agent/agent-web-fetch.js in a VM (same bundle shape as /bin/agent preamble).
|
||||
*/
|
||||
import test from 'brittle'
|
||||
import { readFileSync } from 'node:fs'
|
||||
|
||||
@@ -7,7 +7,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
const coreutilsRoot = join(__dirname, '..')
|
||||
|
||||
test('p2p suite reads peer_details proc for swarm snapshots', async (t) => {
|
||||
const src = await readFile(join(coreutilsRoot, 'lib/p2p-suite.js'), 'utf8')
|
||||
const src = await readFile(join(coreutilsRoot, 'lib/p2p/p2p-suite.js'), 'utf8')
|
||||
t.ok(src.includes('/proc/bare_os/peer_details.json'), 'reads peer details proc')
|
||||
t.ok(src.includes('out.peers = merged.slice(0, 128)'), 'merges swarm + peer details rows')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user