Commit 77e12267a2b0c7a3ac002b5dca4d3d986f2d06bd
added oldest test
wanderer committed on 7/6/2017, 2:26:59 AMParent: f25a4c630940b064038e561bbafd852d929317c8
Files changed
tests/index.js | changed |
tests/index.js | ||
---|---|---|
@@ -21,9 +21,9 @@ | ||
21 | 21 | } |
22 | 22 | |
23 | 23 | node.on('ready', () => { |
24 | 24 | tape('basic', async t => { |
25 | - t.plan(2) | |
25 | + t.plan(3) | |
26 | 26 | let message |
27 | 27 | const expectedState = { |
28 | 28 | '/': 'zdpuB1wc9Pb6jUzfNt4nAxAEUxB7kNhg4vbq7YLcEyBUb6iAB' |
29 | 29 | } |
@@ -52,8 +52,9 @@ | ||
52 | 52 | rootContainer.send(portRef1, message) |
53 | 53 | |
54 | 54 | const stateRoot = await hypervisor.createStateRoot(Infinity) |
55 | 55 | t.deepEquals(stateRoot, expectedState, 'expected root!') |
56 | + t.equals(hypervisor.scheduler.oldest(), 0) | |
56 | 57 | }) |
57 | 58 | |
58 | 59 | tape('basic - do not store containers with no ports bound', async t => { |
59 | 60 | t.plan(1) |
Built with git-ssb-web