This repository was archived by the owner on Feb 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,7 @@ class ChannelAction {
175175 try {
176176 const { selectedChannel } = this . _store ;
177177 this . _nav . goChannels ( ) ;
178- await this . closeChannel ( {
179- channelPoint : selectedChannel . channelPoint ,
180- force : ! selectedChannel . status . includes ( 'open' ) , // force close already closing
181- } ) ;
178+ await this . closeChannel ( { channelPoint : selectedChannel . channelPoint } ) ;
182179 } catch ( err ) {
183180 this . _notification . display ( { msg : 'Closing channel failed!' , err } ) ;
184181 }
Original file line number Diff line number Diff line change @@ -265,16 +265,6 @@ describe('Action Channels Unit Tests', () => {
265265 expect ( nav . goChannels , 'was called once' ) ;
266266 expect ( channel . closeChannel , 'was called with' , {
267267 channelPoint : 'some-channel-point' ,
268- force : false ,
269- } ) ;
270- } ) ;
271-
272- it ( 'should force close pending-closing channel' , async ( ) => {
273- store . selectedChannel . status = 'pending-closing' ;
274- await channel . closeSelectedChannel ( ) ;
275- expect ( channel . closeChannel , 'was called with' , {
276- channelPoint : 'some-channel-point' ,
277- force : true ,
278268 } ) ;
279269 } ) ;
280270
You can’t perform that action at this time.
0 commit comments