ui: fix distinctUntilChanged()

This commit is contained in:
Aaron Greenspan
2021-02-15 11:27:21 -07:00
committed by Aiden McClelland
parent 0937c81e46
commit e1200c2991
5 changed files with 29 additions and 18 deletions

View File

@@ -45,8 +45,8 @@ export class MockApiService extends ApiService {
async testConnection (): Promise<true> {
console.log('testing connection')
this.testCounter ++
await pauseFor(1000)
if (this.testCounter > 5) {
await pauseFor(10000000)
if (this.testCounter > 3) {
return true
} else {
throw new Error('Not Connected')