change: 调整测试用例.

This commit is contained in:
2024-12-01 10:37:13 +08:00
parent a729a5d99c
commit f66390e86b

View File

@@ -5,8 +5,6 @@ import com.serliunx.ddns.support.ipprovider.Provider;
import com.serliunx.ddns.support.ipprovider.ScheduledProvider; import com.serliunx.ddns.support.ipprovider.ScheduledProvider;
import org.junit.Test; import org.junit.Test;
import java.util.concurrent.TimeUnit;
/** /**
* 供应器测试 * 供应器测试
* *
@@ -25,7 +23,7 @@ public class ProviderTest {
@Test @Test
public void testScheduledProvider() throws Exception { public void testScheduledProvider() throws Exception {
ScheduledProvider provider = new ScheduledProvider(new IpApiProvider(), 3); ScheduledProvider provider = new ScheduledProvider(new IpApiProvider(), 3);
provider.changeTimePeriod(10); String ip = provider.get();
TimeUnit.SECONDS.sleep(60); System.out.println(ip);
} }
} }