diff --git a/example.js b/example.js index 4732846..187ef9c 100644 --- a/example.js +++ b/example.js @@ -10,6 +10,7 @@ if (cluster.isMaster) { var a = shm.create(10, 'Float32Array', key); var b = shm.create(10, 'Float32Array', key); assert(a instanceof Float32Array); + assert(a.key == key); assert(b === null); // Assert that getting shm by unexisting key will fail