Skip to content

Commit

Permalink
Merge pull request #105 from windingtree/feat/level-queue-test
Browse files Browse the repository at this point in the history
Feat/level queue test
  • Loading branch information
kostysh authored Mar 20, 2024
2 parents e3e887c + 16e1918 commit 5aa0550
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { describe, expect, it } from 'vitest';
import { GenericStorageOptions } from '../src/index.js';
import { createInitializer } from '../src/level.js';
import { JobHandler, Queue } from '@windingtree/sdk-queue';
import { DateTime } from 'luxon';
import { GenericStorageOptions } from '@windingtree/sdk-storage';
import { createInitializer } from '@windingtree/sdk-storage/level';

describe('Level Queue Test', () => {
const createJobHandler =
Expand Down
2 changes: 1 addition & 1 deletion packages/queue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ export class Queue extends EventEmitter<QueueEvents> {
}

this.jobs.push(job);
logger.trace('Job added:', job);
logger.trace('Job added:', JSON.stringify(job, null, 2));
void this.storageUpdate(job.id, job);
void this.start();
return job.id;
Expand Down
5 changes: 0 additions & 5 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/luxon": "^3.3.5",
"@windingtree/sdk-queue": "workspace:*",
"luxon": "^1.23.0"
},
"dependencies": {
"@windingtree/sdk-logger": "workspace:*",
"buffer": "^6.0.3",
Expand Down
14 changes: 0 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vitest.workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default defineWorkspace([
name: 'e2e',
environment: 'node',
include: ['./examples/e2e-tests/**/*.spec.ts'],
testTimeout: 10000,
},
},
]);

0 comments on commit 5aa0550

Please sign in to comment.