Skip to content

Commit

Permalink
text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anurodh Pokharel committed Apr 5, 2020
1 parent 37f95e1 commit c30f81f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Monal/Monal Tests/XMPP Tests/MLIQProcessorTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ @interface MLIQProcessorTest : XCTestCase

@property (nonatomic, strong) SignalContext *signalContext;
@property (nonatomic, strong) MLSignalStore *monalSignalStore;
@property (nonatomic, strong) NSOperationQueue *queue;

@end

Expand All @@ -30,6 +31,7 @@ - (void)setUp {
self.accountNo=@"1";
self.jid=@"foo@monal.im";
self.resource=@"Monal-iOS.51";
self.queue= [NSOperationQueue currentQueue];

MLXMPPIdentity *identity = [[MLXMPPIdentity alloc] initWithJid:self.jid password:@"" andResource:self.resource];

Expand All @@ -56,7 +58,7 @@ - (void)testResultBind {
NSDictionary *stanzaToParse =@{@"stanzaType":@"iq", @"stanzaString":sample};

ParseIq* iqNode= [[ParseIq alloc] initWithDictionary:stanzaToParse];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties signalContex:self.signalContext andSignalStore:self.monalSignalStore];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties processQueue:self.queue signalContex:self.signalContext andSignalStore:self.monalSignalStore];

[processor processIq:iqNode];

Expand All @@ -73,7 +75,7 @@ - (void)testResultRoster {
XCTestExpectation *vcard= [[XCTestExpectation alloc] initWithDescription:@"vcard"];

ParseIq* iqNode= [[ParseIq alloc] initWithDictionary:stanzaToParse];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties signalContex:self.signalContext andSignalStore:self.monalSignalStore];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties processQueue:self.queue signalContex:self.signalContext andSignalStore:self.monalSignalStore];
processor.getVcards = ^{
[vcard fulfill];
};
Expand All @@ -92,7 +94,7 @@ - (void)testRosterImpersonation {
XCTestExpectation *vcard= [[XCTestExpectation alloc] initWithDescription:@"vcard"];

ParseIq* iqNode= [[ParseIq alloc] initWithDictionary:stanzaToParse];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties signalContex:self.signalContext andSignalStore:self.monalSignalStore];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties processQueue:self.queue signalContex:self.signalContext andSignalStore:self.monalSignalStore];
processor.getVcards = ^{
[vcard fulfill];
};
Expand All @@ -113,7 +115,7 @@ - (void)testResultvCard {

ParseIq* iqNode= [[ParseIq alloc] initWithDictionary:stanzaToParse];

MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties signalContex:self.signalContext andSignalStore:self.monalSignalStore];
MLIQProcessor *processor = [[MLIQProcessor alloc] initWithAccount:self.accountNo connection:self.connectionProperties processQueue:self.queue signalContex:self.signalContext andSignalStore:self.monalSignalStore];
[processor processIq:iqNode];

[self waitForExpectations:@[expectation] timeout:5];
Expand Down

0 comments on commit c30f81f

Please sign in to comment.