Merge pull request #565 from matiu/feature/reconnectInsight
insight REST API retry
This commit is contained in:
commit
69e31e2a79
7 changed files with 63 additions and 48 deletions
|
|
@ -103,15 +103,12 @@ describe("Unit: Controllers", function() {
|
|||
it('should check blockChainStatus', function() {
|
||||
$httpBackend.expectGET(GH);
|
||||
$httpBackend.flush();
|
||||
rootScope.blockChainStatus='error';
|
||||
rootScope.insightError=1;
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(1);
|
||||
rootScope.blockChainStatus='ok';
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(1);
|
||||
rootScope.blockChainStatus='restored';
|
||||
scope.$apply();
|
||||
expect(rootScope.insightError).equal(0);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue