2019-11-01 18:30:06 +00:00
|
|
|
var client = require('../lib/dist');
|
2017-11-08 20:45:22 +00:00
|
|
|
const Long = require('long');
|
|
|
|
|
|
|
|
const EMPTY_VERSION = Long.fromNumber(client.expectedVersion.emptyStream);
|
2016-10-15 05:53:23 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
'Test Set Stream Metadata Raw': function(test) {
|
2017-11-08 20:45:22 +00:00
|
|
|
this.conn.setStreamMetadataRaw(this.testStreamName, EMPTY_VERSION, {$maxCount: 100})
|
2016-10-15 05:53:23 +00:00
|
|
|
.then(function(result) {
|
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
.catch(function(err) {
|
|
|
|
test.done(err);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
'Test Get Stream Metadata Raw': function(test) {
|
|
|
|
this.conn.getStreamMetadataRaw(this.testStreamName)
|
|
|
|
.then(function(result) {
|
|
|
|
test.done();
|
|
|
|
})
|
|
|
|
.catch(function(err) {
|
|
|
|
test.done(err);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
require('./common/base_test').init(module.exports);
|