var tape = require('tape')
var create = require('./helpers/create')
var replicate = require('./helpers/replicate')
tape('unauthorized writer doing a put after replication', function (t) {
t.plan(1)
var a = create.one()
a.ready(function () {
var b = create.one(a.key)
b.ready(function () {
replicate(a, b, function () {
b.put('foo', 'bar', function (err) {
t.error(err)
})
})
})
})
})
The replicate step seems necessary. b isn't authorized here.
The
replicate
step seems necessary.b
isn't authorized here.