1
0
mirror of synced 2026-02-08 11:47:49 +08:00

修复测试代码中的var类型声明以提高兼容性

Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-27 02:57:27 +00:00
parent 9d81192c83
commit c23b540d97

View File

@@ -7,6 +7,8 @@ import me.chanjar.weixin.cp.config.impl.WxCpDefaultConfigImpl;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.util.concurrent.locks.Lock;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
@@ -183,7 +185,7 @@ public class WxCpServiceGetMsgAuditAccessTokenTest {
@Override
public String getMsgAuditAccessToken(boolean forceRefresh) throws WxErrorException {
// 使用锁机制
var lock = getWxCpConfigStorage().getMsgAuditAccessTokenLock();
Lock lock = getWxCpConfigStorage().getMsgAuditAccessTokenLock();
lock.lock();
try {
// 检查是否需要刷新