Skip to content

Commit

Permalink
test: 💍 enhance test
Browse files Browse the repository at this point in the history
  • Loading branch information
waynewyang committed Jan 2, 2024
1 parent 149a4bd commit 0e8aa9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/backgroundTask/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { calibrationBgTask } from '../../src/config/backgroundTask';
import { delay } from '@unipackage/utils';
import * as dotenv from 'dotenv';
dotenv.config();

describe('BackgroundTask', () => {
beforeAll(() => {
Expand All @@ -14,7 +16,7 @@ describe('BackgroundTask', () => {
expect(calibrationBgTask.isRunning()).toBe(true);

const startHeight = calibrationBgTask.getStartHeight();
expect(startHeight).toBe(1213437);
expect(startHeight).toBe(Number(process.env.CALIBRATION_START_HEIGHT));

const startSyncHeight = calibrationBgTask.getCurrentSyncHeight();
await delay(20000);
Expand Down

0 comments on commit 0e8aa9d

Please sign in to comment.