-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Redis Storage Add On #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Went for a first pass on review.
Pretty much only found nits or code golf improvements.
I would say the major comment would be around module name and usage.
packages/@mollitia/redis-storage/test/unit/module/ratelimit.spec.ts
Outdated
Show resolved
Hide resolved
packages/@mollitia/redis-storage/test/unit/module/ratelimit.spec.ts
Outdated
Show resolved
Hide resolved
.github/workflows/redis_test.yml
Outdated
- name: Install net tools | ||
run: | | ||
sudo apt-get update | ||
#sudo apt-get install -y redis-tools redis-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can remove this one if not used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted as I want to be able to test both options (redis install via aptget and redis install via gha)
npm install redis --save | ||
npm install @mollitia/redis --save |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's ok to do that inline: npm install @mollitia/redis redis --save
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, updated
.github/scripts/redis_test/index.js
Outdated
await success(circuit2, { data: 'Circuit2', delay: 150 }); | ||
check(slidingTimeBreaker2.state === Mollitia.BreakerState.OPENED, 'Ok, circuit is opened', 'Circuit is not opened as expected...'); | ||
await delay(10); | ||
await expect(circuit.fn(successAsync).execute('dummy')).resolves.toEqual('dummy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those expects coming from vitest
?
It doesn't look like it's a vitest test file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, forgot to replace these ones.
Fixed
No description provided.