!10 Fix test failure

From: @wang--ge 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-08-12 09:28:15 +00:00 committed by Gitee
commit 1124b796e1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global gem_name redis %global gem_name redis
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 4.7.0 Version: 4.7.0
Release: 2 Release: 3
Summary: A Ruby client library for Redis Summary: A Ruby client library for Redis
License: MIT License: MIT
URL: https://github.com/redis/redis-rb URL: https://github.com/redis/redis-rb
@ -45,6 +45,13 @@ sed -i \
-e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \ -e '/def test_large_payload/,/end/ {/end/ s/end/&\n end/;}' \
test/internals_test.rb test/internals_test.rb
sed -i \
-e '/def test_redirection_when_slot_is_resharding/i\ driver(:ruby) do' \
-e '/def test_redirection_when_slot_is_resharding/,/end/ {/end/ s/end/&\n end/;}' \
test/cluster_client_slots_test.rb
sed -i 's/redis:\/\/\//redis:\/\/127.0.0.1/g' test/url_param_test.rb
mkdir bin mkdir bin
echo '#!/usr/bin/sh' > bin/build echo '#!/usr/bin/sh' > bin/build
chmod a+x bin/build chmod a+x bin/build
@ -74,6 +81,9 @@ popd
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Sat Aug 12 2023 Ge Wang <wang__ge@126.com> - 4.7.0-3
- Fix test_redirection_when_slot_is_resharding test failure
* Thu Jan 12 2023 xu_ping <xuping33@h-partners.com> - 4.7.0-2 * Thu Jan 12 2023 xu_ping <xuping33@h-partners.com> - 4.7.0-2
- The TestInternals#test_large_payload fails with hiredis. - The TestInternals#test_large_payload fails with hiredis.