Skip to content

Commit

Permalink
fix(VirtualTimeScheduler): remove default maxFrame limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and Blake Friedman committed Aug 23, 2016
1 parent 49c4b18 commit 4c7eceb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scheduler/VirtualTimeScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class VirtualTimeScheduler extends AsyncScheduler {
public index: number = -1;

constructor(SchedulerAction: typeof AsyncAction = VirtualAction,
public maxFrames: number = 750) {
public maxFrames: number = Number.POSITIVE_INFINITY) {
super(SchedulerAction, () => this.frame);
}

Expand Down
6 changes: 4 additions & 2 deletions src/testing/TestScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import {HotObservable} from './HotObservable';
import {TestMessage} from './TestMessage';
import {SubscriptionLog} from './SubscriptionLog';
import {Subscription} from '../Subscription';
import {VirtualTimeScheduler} from '../scheduler/VirtualTimeScheduler';
import {VirtualTimeScheduler, VirtualAction} from '../scheduler/VirtualTimeScheduler';

const defaultMaxFrame: number = 750;

interface FlushableTest {
ready: boolean;
Expand All @@ -23,7 +25,7 @@ export class TestScheduler extends VirtualTimeScheduler {
private flushTests: FlushableTest[] = [];

constructor(public assertDeepEqual: (actual: any, expected: any) => boolean | void) {
super();
super(VirtualAction, defaultMaxFrame);
}

createTime(marbles: string): number {
Expand Down

0 comments on commit 4c7eceb

Please sign in to comment.