Add fetch controller tests
This commit is contained in:
parent
56c77dc3f6
commit
12d8d15572
3 changed files with 192 additions and 2 deletions
|
|
@ -65,6 +65,10 @@ export class FetchController {
|
|||
public startReset(): void {
|
||||
this.isResetting = true;
|
||||
this.rejectUntil(new SyncResetError());
|
||||
// Catch unhandled rejection if no fetches are waiting
|
||||
this.until.catch(() => {
|
||||
// Intentionally ignore - this rejection is handled by waiting fetches
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue