Skip to content

Commit

Permalink
t1308-config-set: fix a test that has a typo
Browse files Browse the repository at this point in the history
Change test 'find value_list for a key from a configset' to redirect the
result to 'expect' instead of 'except' which was a typo.

With this change, the test case actually fails because it uses
`configset_get_value`. Clearly, this was intended to be
`configset_get_value_multi` since the test expects a list of values
instead of a single value, so let's fix that, too.

Originally contributed as git#451.

Signed-off-by: Tanay Abhra <tanayabh@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
tanayabh authored and dscho committed Oct 10, 2019
1 parent 70bf0b7 commit 7b88e36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t1308-config-set.sh
Expand Up @@ -166,14 +166,14 @@ test_expect_success 'find value with highest priority from a configset' '
'

test_expect_success 'find value_list for a key from a configset' '
cat >except <<-\EOF &&
cat >expect <<-\EOF &&
lama
ball
sam
bat
hask
lama
ball
EOF
test-tool config configset_get_value case.baz config2 .git/config >actual &&
test-tool config configset_get_value_multi case.baz config2 .git/config >actual &&
test_cmp expect actual
'

Expand Down

0 comments on commit 7b88e36

Please sign in to comment.