Skip to content

Commit

Permalink
feat: rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed May 20, 2024
1 parent 5b88e6b commit f63629f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"private": true,
"version": "0.0.0",
"scripts": {
"test": "FORCE_COLOR=true meteor --release=3.0-rc.0 test-packages ./ ",
"test:redis": "REDIS_OPLOG_SETTINGS='{\"debug\":true}' FORCE_COLOR=true meteor --release=3.0-rc.0 test-packages ./ ",
"test:local": "METEOR_PACKAGE_DIRS=./packages meteor test-packages ./ --release=3.0-rc.0",
"test": "FORCE_COLOR=true meteor --release=3.0-rc.1 test-packages ./ ",
"test:redis": "REDIS_OPLOG_SETTINGS='{\"debug\":true}' FORCE_COLOR=true meteor --release=3.0-rc.1 test-packages ./ ",
"test:local": "METEOR_PACKAGE_DIRS=./packages meteor test-packages ./ --release=3.0-rc.1",
"lint": "eslint . --cache . --ext .js",
"publish": "npm prune --production && meteor publish"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/hijack/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ addAsyncTest(
['wait',{waitOn: []}],
...isRedisOplogEnabled ? [
['db',{coll: 'tinytest-data', func: 'fetch', selector: JSON.stringify({_id: 'aa'}), cursor: true, docSize: 12, docsFetched: 1, projection: JSON.stringify({_id: 1})}],
['db',{coll: 'tinytest-data', func: 'remove', selector: JSON.stringify({_id: 'aa'}), removedDocs: 1}]
['db',{coll: 'tinytest-data', func: 'removeAsync', selector: JSON.stringify({_id: 'aa'}), removedDocs: 1}]
] : [['db', {coll: 'tinytest-data', func: 'removeAsync', selector: JSON.stringify({_id: 'aa'}), removedDocs: 1}]],
['complete']
];
Expand Down
4 changes: 2 additions & 2 deletions tests/hijack/redis_oplog.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { sleep } from '../../lib/utils';
import { TestData, TestDataRedis, TestDataRedisNoRaceProtection } from '../_helpers/globals';
import { FindMetricsForPub, SubscribeAndWait, addTestWithRoundedTime, getMeteorClient, registerMethod, registerPublication, subscribeAndWait } from '../_helpers/helpers';
import { subscribeAndWait, addTestWithRoundedTime, getMeteorClient, registerMethod, registerPublication, findMetricsForMethod, FindMetricsForPub } from '../_helpers/helpers';

Check failure on line 3 in tests/hijack/redis_oplog.js

View workflow job for this annotation

GitHub Actions / build

'findMetricsForMethod' is defined but never used

/**
* We only track the observers coming from subscriptions (which have `ownerInfo`)
Expand Down Expand Up @@ -45,7 +45,7 @@ addTestWithRoundedTime('Database - Redis Oplog - Added with limit/skip', async f
await TestData.insertAsync({ name: 'test' });

const client = getMeteorClient();
const sub = SubscribeAndWait(client, pub);
const sub = await subscribeAndWait(client, pub);
let metrics = FindMetricsForPub(pub);

test.equal(metrics.polledDocuments, 1);
Expand Down

0 comments on commit f63629f

Please sign in to comment.