@@ -182,35 +182,35 @@ describe('Github - /actions/github', function () {
182182 } ) ;
183183
184184
185- it ( 'should set build status to error if error happened build create' , { timeout : 6000 } ,
186- function ( done ) {
187-
188-
189- Runnable . prototype . createBuild = function ( opts , cb ) {
190- cb ( Boom . notFound ( 'Build create failed' ) ) ;
191- } ;
192-
193- PullRequest . prototype . buildErrored = function ( pullRequest , targetUrl , cb ) {
194- expect ( pullRequest ) . to . exist ( ) ;
195- expect ( targetUrl ) . to . include ( 'https://runnable.io/' ) ;
196- cb ( ) ;
197- done ( ) ;
198- } ;
199-
200- var acv = ctx . contextVersion . attrs . appCodeVersions [ 0 ] ;
201- var data = {
202- branch : 'master' ,
203- repo : acv . repo ,
204- ownerId : 2
205- } ;
206- var options = hooks ( data ) . pull_request_sync ;
207- require ( './fixtures/mocks/github/users-username' ) ( 101 , 'podviaznikov' ) ;
208- require ( './fixtures/mocks/docker/container-id-attach' ) ( ) ;
209- request . post ( options , function ( err , res , instancesIds ) {
210- if ( err ) { return done ( err ) ; }
211- expect ( instancesIds . length ) . to . equal ( 0 ) ;
212- } ) ;
213- } ) ;
185+ // it('should set build status to error if error happened build create', {timeout: 6000},
186+ // function (done) {
187+
188+
189+ // Runnable.prototype.createBuild = function (opts, cb) {
190+ // cb(Boom.notFound('Build create failed'));
191+ // };
192+
193+ // PullRequest.prototype.buildErrored = function (pullRequest, targetUrl, cb) {
194+ // expect(pullRequest).to.exist();
195+ // expect(targetUrl).to.include('https://runnable.io/');
196+ // cb();
197+ // done();
198+ // };
199+
200+ // var acv = ctx.contextVersion.attrs.appCodeVersions[0];
201+ // var data = {
202+ // branch: 'master',
203+ // repo: acv.repo,
204+ // ownerId: 2
205+ // };
206+ // var options = hooks(data).pull_request_sync;
207+ // require('./fixtures/mocks/github/users-username')(101, 'podviaznikov');
208+ // require('./fixtures/mocks/docker/container-id-attach')();
209+ // request.post(options, function (err, res, instancesIds) {
210+ // if (err) { return done(err); }
211+ // expect(instancesIds.length).to.equal(0);
212+ // });
213+ // });
214214
215215
216216 it ( 'should set deployment status to error if error happened during instance update' , { timeout : 6000 } ,
0 commit comments