@@ -18,7 +18,7 @@ import { RepositoryFactoryHttp } from "../../src/infrastructure/RepositoryFactor
1818import { RepositoryFactory } from "../../src/infrastructure/RepositoryFactory" ;
1919import { NetworkType } from "../../src/model/blockchain/NetworkType" ;
2020import { combineLatest } from "rxjs" ;
21- import { Listener } from "../../src/infrastructure/Listener " ;
21+ import { IListener } from "../../src/infrastructure/IListener " ;
2222import { SignedTransaction } from "../../src/model/transaction/SignedTransaction" ;
2323import { filter } from "rxjs/operators" ;
2424import { Transaction } from "../../src/model/transaction/Transaction" ;
@@ -40,7 +40,7 @@ export class IntegrationTestHelper {
4040 public cosignAccount4 : Account ;
4141 public networkType : NetworkType ;
4242 public generationHash : string ;
43- public listener : Listener ;
43+ public listener : IListener ;
4444 public maxFee : UInt64 ;
4545 public harvestingAccount : Account ;
4646
@@ -56,7 +56,6 @@ export class IntegrationTestHelper {
5656 const json = JSON . parse ( jsonData ) ;
5757 console . log ( `Running tests against: ${ json . apiUrl } ` ) ;
5858 this . apiUrl = json . apiUrl ;
59- this . listener = new Listener ( this . apiUrl ) ;
6059 this . repositoryFactory = new RepositoryFactoryHttp ( json . apiUrl ) ;
6160 combineLatest ( this . repositoryFactory . getGenerationHash ( ) , this . repositoryFactory . getNetworkType ( ) ) . subscribe ( ( [ generationHash , networkType ] ) => {
6261 this . networkType = networkType ;
@@ -70,6 +69,7 @@ export class IntegrationTestHelper {
7069 this . cosignAccount3 = this . createAccount ( json . cosignatory3Account ) ;
7170 this . cosignAccount4 = this . createAccount ( json . cosignatory4Account ) ;
7271 this . harvestingAccount = this . createAccount ( json . harvestingAccount ) ;
72+ this . listener = this . repositoryFactory . createListener ( ) ;
7373
7474 this . maxFee = UInt64 . fromUint ( 1000000 ) ; //What would be the best maxFee? In the future we will load the fee multiplier from rest.
7575
0 commit comments