Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix a warning for a variable shadowed in the tests
Just a nitpick, but there are a couple of the variables
shadowed in the list comprehensions in the tests.
It doesn't compromise the tests, but raises a warning
during the tests' build.
  • Loading branch information
eiri committed Jan 12, 2016
1 parent 807aa3f commit de32c655443d75d58cd36cef2bd6b4c67b6a91b6
Showing 1 changed file with 4 additions and 4 deletions.
@@ -240,8 +240,8 @@ provider_modules_order_test() ->
],

Defs = definitions(providers, bar_handlers),
Result = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs],
Tests = lists:zip(Expected, Result),
Results = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs],
Tests = lists:zip(Expected, Results),
[?assertEqual(Expect, Result) || {Expect, Result} <- Tests],
ok.

@@ -254,8 +254,8 @@ providers_order_test() ->
],
AllDefs = grouped_definitions([foo_epi, bar_epi]),
{_, Defs} = lists:keyfind({providers, bar_handlers}, 1, AllDefs),
Result = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs],
Tests = lists:zip(Expected, Result),
Results = [{App, V} || {App, #couch_epi_spec{value = V}} <- Defs],
Tests = lists:zip(Expected, Results),
[?assertEqual(Expect, Result) || {Expect, Result} <- Tests],
ok.

0 comments on commit de32c65

Please sign in to comment.