Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Jun 20, 2024
1 parent c1d422e commit f865866
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/integrations/realcluster/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ cd ../../..
if [ ! -d "bin" ] || [ ! -e "bin/tikv-server" ] && [ ! -e "bin/tidb-server" ] && [ ! -e "bin/tiflash" ]; then
color-green "downloading binaries..."
color-green "this may take a few minutes, you can also download them manually and put them in the bin directory."
make pd-server WITH_RACE=1
$TIUP_BIN_DIR playground nightly --kv 3 --tiflash 1 --db 1 --pd 3 --without-monitor --tag pd_test \
--pd.binpath ./bin/pd-server \
> $CUR_PATH/playground.log 2>&1 &
Expand Down
10 changes: 6 additions & 4 deletions tests/integrations/realcluster/reboot_pd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ func TestReloadLabel(t *testing.T) {
re.NoError(err)
for _, store := range resp.Stores {
if store.Store.ID == setStore.Store.ID {
for _, label := range store.Store.Labels {
re.Equal(label.Value, storeLabel[label.Key])
for key, value := range storeLabel {
re.NotNil(storeLabel[key])
re.Equal(value, storeLabel[key])
}
}
}
Expand All @@ -66,8 +67,9 @@ func TestReloadLabel(t *testing.T) {
re.NoError(err)
for _, store := range resp.Stores {
if store.Store.ID == setStore.Store.ID {
for _, label := range store.Store.Labels {
re.Equal(label.Value, storeLabel[label.Key])
for key, value := range storeLabel {
re.NotNil(storeLabel[key])
re.Equal(value, storeLabel[key])
}
}
}
Expand Down

0 comments on commit f865866

Please sign in to comment.