Skip to content
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

[TECH] Corriger le warning valid integer des tests d'intég #11532

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

yannbertrand
Copy link
Member

🥞 Problème

Dans l'appel de knex.limit, undefined n'est pas un integer et ça cause un log dans le test d'intégration correspondant :

A valid integer must be provided to limit

C'était déjà arrivé et corrigé dans #6747.

🥓 Proposition

Mettre une valeur par défaut à la limite. (la fonction est toujours appelée avec une limite hors test)

🧃 Remarques

Mini correction de JSDoc au passage.

😋 Pour tester

CI 🟢 et disparation du log dans les tests d'intég.

@yannbertrand yannbertrand self-assigned this Feb 28, 2025
@yannbertrand yannbertrand requested a review from a team as a code owner February 28, 2025 07:22
@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@pix-service-auto-merge pix-service-auto-merge force-pushed the fix-valid-integer-test-log-error branch from bf4628d to 718fbd9 Compare February 28, 2025 08:31
Copy link
Contributor

@machestla machestla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tech review Ok ✅ 🐕

@pix-service-auto-merge pix-service-auto-merge merged commit f6f2333 into dev Feb 28, 2025
9 of 11 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the fix-valid-integer-test-log-error branch February 28, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants