From 3adfed454abc1d96c9486cf3328860678dd46f03 Mon Sep 17 00:00:00 2001 From: lance6716 Date: Sat, 7 Sep 2024 13:53:30 +0800 Subject: [PATCH] fix wrong UT Signed-off-by: lance6716 --- client/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index 9dbf0a3f5..1008a101b 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -528,9 +528,9 @@ INSERT INTO field_value_test VALUES ( } func (s *clientTestSuite) TestLongPassword() { - _, err := s.c.Execute("DROP USER IF EXISTS 'test_long_password'@'localhost'") + _, err := s.c.Execute("DROP USER IF EXISTS 'test_long_password'@'%'") require.NoError(s.T(), err) - _, err = s.c.Execute("CREATE USER 'test_long_password'@'localhost' IDENTIFIED BY '12345678901234567890'") + _, err = s.c.Execute("CREATE USER 'test_long_password'@'%' IDENTIFIED BY '12345678901234567890'") require.NoError(s.T(), err) addr := fmt.Sprintf("%s:%s", *test_util.MysqlHost, s.port)