Merge pull request #317 from lbryio/in-channel-publish-test

updated tests to use different claim name
This commit is contained in:
Bill Bittner 2017-12-28 13:06:57 -08:00 committed by GitHub
commit fb24e947a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,17 +84,17 @@ describe('end-to-end', function () {
});
});
describe('publish', function () {
describe('publish requests', function () {
const publishUrl = '/api/claim-publish';
const date = new Date();
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
const filePath = './test/mock-data/bird.jpeg';
const fileName = 'byrd.jpeg';
const channelName = testChannel;
const channelPassword = testChannelPassword;
describe(publishUrl, function () {
it(`non-channel publishes should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
describe('anonymous publishes', function () {
it(`should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
const date = new Date();
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
chai.request(host)
.post(publishUrl)
.type('form')
@ -108,8 +108,10 @@ describe('end-to-end', function () {
}).timeout(publishTimeout);
});
describe(publishUrl, function () {
it(`channel publishes should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
describe('in-channel publishes', function () {
it(`should receive a status code 200 within ${publishTimeout}ms @usesLbc`, function (done) {
const date = new Date();
const name = `test-publish-${date.getFullYear()}-${date.getMonth()}-${date.getDate()}-${date.getTime()}`;
chai.request(host)
.post(publishUrl)
.type('form')