Make stats persistence test less flaky

This commit is contained in:
Jacob Karlsson 2024-05-07 15:16:19 +02:00
parent 92cf530df0
commit dd67f54f1b
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {