Skip to content

Commit

Permalink
fix(micro-perf): use the correnct scheduler on current-thread tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luisgabriel committed Dec 14, 2015
1 parent fe56b28 commit 3dff5eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var RxNew = require('../../../../index');

module.exports = function (suite) {
var oldBufferCountWithCurrentThreadScheduler = RxOld.Observable.range(0, 25, RxOld.Scheduler.currentThread).bufferWithCount(5);
var newBufferCountWithCurrentThreadScheduler = RxNew.Observable.range(0, 25).bufferCount(5);
var newBufferCountWithCurrentThreadScheduler = RxNew.Observable.range(0, 25, RxNew.Scheduler.queue).bufferCount(5);

function _next(x) { }
function _error(e) { }
Expand Down
4 changes: 2 additions & 2 deletions perf/micro/current-thread-scheduler/operators/concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ var RxNew = require('../../../../index');
module.exports = function (suite) {
var oldConcatWithCurrentThreadScheduler = RxOld.Observable.range(0, 25, RxOld.Scheduler.currentThread)
.concat(RxOld.Observable.range(0, 25, RxOld.Scheduler.currentThread));
var newConcatWithCurrentThreadScheduler = RxNew.Observable.range(0, 25)
.concat(RxNew.Observable.range(0, 25));
var newConcatWithCurrentThreadScheduler = RxNew.Observable.range(0, 25, RxNew.Scheduler.queue)
.concat(RxNew.Observable.range(0, 25, RxNew.Scheduler.queue));

function _next(x) { }
function _error(e) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var RxNew = require('../../../../index');

module.exports = function (suite) {
var oldWindowCountWithCurrentThreadScheduler = RxOld.Observable.range(0, 25, RxOld.Scheduler.currentThread).windowWithCount(5);
var newWindowCountWithCurrentThreadScheduler = RxNew.Observable.range(0, 25).windowCount(5);
var newWindowCountWithCurrentThreadScheduler = RxNew.Observable.range(0, 25, RxNew.Scheduler.queue).windowCount(5);

function _next(x) { }
function _error(e) { }
Expand Down

0 comments on commit 3dff5eb

Please sign in to comment.