Skip to content

Commit 490e098

Browse files
branch-4.0: [fix](test) replace hardcoded IP with variable in group commit redirect test #60573 (#60589)
Cherry-picked from #60573 Co-authored-by: Xin Liao <liaoxin@selectdb.com>
1 parent c946cef commit 490e098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regression-test/suites/load_p0/stream_load/test_group_commit_redirect.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ suite('test_group_commit_redirect', 'docker') {
166166

167167
location = getRedirectLocation(feIp, fePort, "", "async_mode")
168168
log.info("default location: ${location}")
169-
assertTrue(location.contains("11.20.20.19:8040/api/$databaseName/$tableName/_stream_load_forward?") && (location.contains("forward_to=${be1Ip}:${be1HttpPort}") || location.contains("forward_to=${be2Ip}:${be2HttpPort}") || location.contains("forward_to=${be3Ip}:${be3HttpPort}")))
169+
assertTrue(location.contains("$feIp:8040/api/$databaseName/$tableName/_stream_load_forward?") && (location.contains("forward_to=${be1Ip}:${be1HttpPort}") || location.contains("forward_to=${be2Ip}:${be2HttpPort}") || location.contains("forward_to=${be3Ip}:${be3HttpPort}")))
170170

171171
location = getRedirectLocation(feIp, fePort, "public", "off_mode")
172172
log.info("public location: ${location}")
@@ -178,7 +178,7 @@ suite('test_group_commit_redirect', 'docker') {
178178

179179
location = getRedirectLocation(feIp, fePort, "", "off_mode")
180180
log.info("public location: ${location}")
181-
assertTrue(location.contains("11.20.20.19:8040/api/$databaseName/$tableName/_stream_load"))
181+
assertTrue(location.contains("$feIp:8040/api/$databaseName/$tableName/_stream_load"))
182182

183183
}
184184

0 commit comments

Comments
 (0)