Skip to content

Commit

Permalink
fix: unit test values (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Aug 12, 2023
1 parent a82a699 commit 61c1ec1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/api_get_taxonomy_ingredients_server_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void main() {
TaxonomyIngredientQueryConfiguration.roots(fields: fields),
);
expect(ingredients, isNotNull);
expect(ingredients!.length, greaterThan(800)); // was 816 on 2022-09-23
expect(ingredients!.length, greaterThan(700)); // was 795 on 2023-08-12
for (final TaxonomyIngredient ingredient in ingredients.values) {
// no parents for roots
expect(ingredient.parents, isNull);
Expand Down
4 changes: 2 additions & 2 deletions test/api_get_to_be_completed_products_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ void main() {
() async => checkTypeCount(
OpenFoodFactsCountry.FRANCE,
'Carrefour',
// 2023-07-09: was 23054
20000,
// 2023-08-12: was 14778
10000,
));

test(
Expand Down
8 changes: 4 additions & 4 deletions test/api_search_products_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -823,10 +823,10 @@ void main() {
// There were too many results for FRANCE, and that made the server crash.
// That's why we add a filter on STORES.
const Map<int, int> novaMinCounts = <int, int>{
1: 2000, // was 2138 on 2023-07-09
2: 400, // was 460 on 2023-07-09
3: 4000, // was 4301 on 2023-07-09
4: 10000, // was 10973 on 2023-07-09
1: 1500, // was 1777 on 2023-08-12
2: 300, // was 352 on 2023-08-12
3: 3000, // was 3654 on 2023-08-12
4: 7000, // was 8558 on 2023-08-12
};

// single filters
Expand Down

0 comments on commit 61c1ec1

Please sign in to comment.