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.
19 lines
537 B
19 lines
537 B
require('./harness').run(); |
|
|
|
connection.addListener('ready', function () { |
|
var callbackFired = false; |
|
|
|
// first call to ensure exchange exists |
|
connection.exchange('node-no-declare-and-confirm', {type: 'fanout'}, function () { |
|
|
|
connection.exchange('node-no-declare-and-confirm', { noDeclare: true, confirm: false }, function (exchange) { |
|
callbackFired = true; |
|
}); |
|
}); |
|
|
|
setTimeout( function() { |
|
assert.ok(callbackFired, "exchange not connected"); |
|
connection.end(); |
|
connection.destroy(); |
|
}, 1000); |
|
});
|
|
|