nftables: test that a start waits for the watch's expiry; refuse a stale node-engine package
Review round 2 (1): the start's wait for the expiries the watch handed over had no test that failed without it; the start test gains a store whose deletes wait, and without the wait the key is said expired twice. The note: a node-engine package naming no verb converged refuses the start loudly instead of asking seat:node-engine.undefined. Builds: design 33 control-verbs §10, §11, §14; design 47 H H-A-312
This commit is contained in:
@@ -146,6 +146,11 @@ const allowances = new Allowances(store, node, (body) => seatPublish(allowancesC
|
||||
meshTable: () => firewall.ruleset(),
|
||||
});
|
||||
const start = (async () => {
|
||||
// A node-engine package older than the verb converged names none: refused here, loudly, never asked as
|
||||
// seat:node-engine.undefined (H-A-312).
|
||||
if (!nodeEngineVerbs.converged) {
|
||||
throw new Error("the node-engine seat's package names no verb converged (a package older than design 33 control-verbs §10)");
|
||||
}
|
||||
await keeps([{ name: STATE }]);
|
||||
await kept.watch(async (change) => {
|
||||
if (change.op === "put") own.add(change.key);
|
||||
|
||||
Reference in New Issue
Block a user