mirror of https://codeberg.org/pzp/pzp-net.git
Make stats persistence test less flaky
This commit is contained in:
parent
92cf530df0
commit
dd67f54f1b
|
@ -65,7 +65,7 @@ test('Glueing together stats with connections', async (t) => {
|
|||
const fileContents = FS.readFileSync(statsJSONPath, 'utf8')
|
||||
const json = JSON.parse(fileContents)
|
||||
assert.deepEqual(Object.keys(json), [TEST_ADDR])
|
||||
assert.deepEqual(Object.keys(json[TEST_ADDR]), ['stateChange'])
|
||||
assert.ok(Object.keys(json[TEST_ADDR]).includes('stateChange'))
|
||||
})
|
||||
|
||||
await t.test('tunnel connections are not stats-persisted', async (t) => {
|
||||
|
|
Loading…
Reference in New Issue