You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
524 B

var conn = require('./harness').createConnection();
var caughtError = false;
var later = function(fun) {
setTimeout(fun, 500);
};
conn.once('ready', function () {
puts("connected to " + conn.serverProperties.product);
var q = conn.queue('node-simple-queue');
try {
q.unbind('unknown-exchange', 'routing-key');
} catch(e) {
caughtError = true;
}
later(function() {
conn.end();
process.exit();
});
});
process.addListener('exit', function () {
assert.equal(caughtError, false);
});