Skip to content

Commit 9d4e971

Browse files
fix: improve test to restore property before test
1 parent f5b3066 commit 9d4e971

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fe/fe-core/src/test/java/org/apache/doris/mysql/authenticate/ldap/LdapAuthenticatorTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import mockit.Expectations;
3030
import mockit.Mocked;
3131
import org.junit.After;
32+
import org.junit.Before;
3233
import org.junit.Assert;
3334
import org.junit.Test;
3435

@@ -168,4 +169,9 @@ public void testEmptyPassword() throws IOException {
168169
public void tearDown() {
169170
LdapConfig.ldap_allow_empty_pass = true; // restoring default value for other tests
170171
}
172+
173+
@Before
174+
public void setUp() {
175+
LdapConfig.ldap_allow_empty_pass = true; //restoring default value for other tests
176+
}
171177
}

0 commit comments

Comments
 (0)