File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 7979 pip install "libvalkey>=4.0.0"
8080 fi
8181 invoke devenv
82- sleep 10 # time to settle
82+ if [[ "${{matrix.test-type}}" == "standalone" ]]; then
83+ ./util/wait-for-it.sh localhost:6379
84+ else
85+ ./util/wait-for-it.sh localhost:16379
86+ fi
8387 invoke ${{matrix.test-type}}-tests --protocol=${{ matrix.protocol-version }}
8488 if [[ "${{matrix.python-version}}" != pypy-* ]]; then
8589 invoke ${{matrix.test-type}}-tests --uvloop --protocol=${{ matrix.protocol-version }}
Original file line number Diff line number Diff line change @@ -1648,7 +1648,10 @@ def initialize(self):
16481648 self .nodes_cache = tmp_nodes_cache
16491649 self .slots_cache = tmp_slots
16501650 # Set the default node
1651- self .default_node = self .get_nodes_by_server_type (PRIMARY )[0 ]
1651+ try :
1652+ self .default_node = self .get_nodes_by_server_type (PRIMARY )[0 ]
1653+ except IndexError :
1654+ raise ValkeyClusterException ("No primary nodes found in the cluster" )
16521655 if self ._dynamic_startup_nodes :
16531656 # Populate the startup nodes with all discovered nodes
16541657 self .startup_nodes = tmp_nodes_cache
You can’t perform that action at this time.
0 commit comments