Skip to content

Commit 4277fc2

Browse files
committed
fix tests
1 parent 51c2b91 commit 4277fc2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.test/run.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ killoff
254254
--silent \
255255
-e "show create user")
256256
# shellcheck disable=SC2016
257-
[ "${createuser//\'/\`}" == 'CREATE USER `mysql`@`localhost` IDENTIFIED VIA unix_socket' ] || die "I wasn't created how I was expected"
257+
[ "${createuser//\'/\`}" == 'CREATE USER `mysql`@`localhost` IDENTIFIED VIA unix_socket' ] || die "mysql@localhost wasn't created how I was expected"
258258

259259
grants="$(docker exec --user mysql -i \
260260
$cname \
@@ -263,24 +263,23 @@ killoff
263263
-e show\ grants)"
264264

265265
# shellcheck disable=SC2016
266-
[ "${grants//\'/\`}" == 'GRANT USAGE ON *.* TO `mysql`@`localhost` IDENTIFIED VIA unix_socket' ] || die "I wasn't granted what I was expected"
266+
[ "${grants//\'/\`}" == 'GRANT USAGE ON *.* TO `mysql`@`localhost` IDENTIFIED VIA unix_socket' ] || die "mysql@localhost wasn't granted what I was expected"
267267

268268
createuser=$(docker exec --user mysql -i \
269269
"$cname" \
270270
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
271271
--silent \
272272
-e "show create user")
273273
# shellcheck disable=SC2016
274-
[[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`localhost` IDENTIFIED' ]] || die "I wasn't created how I was expected"
274+
[[ "${createuser//\'/\`}" =~ 'CREATE USER `healthcheck`@`::1` IDENTIFIED' ]] || die "healtheck wasn't created how I was expected"
275275

276276
grants="$(docker exec --user mysql -i \
277277
$cname \
278278
$mariadb --defaults-file=/var/lib/mysql/.my-healthcheck.cnf \
279279
--silent \
280280
-e show\ grants)"
281281

282-
# shellcheck disable=SC2016
283-
[[ "${grants//\'/\`}" =~ 'GRANT USAGE ON *.* TO `healthcheck`@`localhost`' ]] || die "I wasn't granted what I was expected"
282+
[[ "${grants//\'/\`}" =~ GRANT\ USAGE\ ON\ *.*\ TO\ \`healthcheck\`@\`::1\` ]] || die "healthcheck wasn't granted what I was expected"
284283
killoff
285284

286285
;&

0 commit comments

Comments
 (0)