修复测试问题
This commit is contained in:
parent
01909eb7b3
commit
7eb1c1efdc
@ -45,13 +45,13 @@ public class OnlyRemoteRetryHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Retryable(scene = "localRetryWithRequires", retryStrategy = RetryType.ONLY_LOCAL)
|
@Retryable(scene = "localRetryWithRequires", retryStrategy = RetryType.ONLY_REMOTE)
|
||||||
public void localRetryWithRequires(String params) {
|
public void localRetryWithRequires(String params) {
|
||||||
System.out.println("local retry 方法开始执行");
|
System.out.println("local retry 方法开始执行");
|
||||||
double i = 1 / 0;
|
double i = 1 / 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Retryable(scene = "localRetryWithRequiresNew", retryStrategy = RetryType.ONLY_LOCAL, propagation = Propagation.REQUIRES_NEW)
|
@Retryable(scene = "localRetryWithRequiresNew", retryStrategy = RetryType.ONLY_REMOTE, propagation = Propagation.REQUIRES_NEW)
|
||||||
public void localRetryWithRequiresNew(String params) {
|
public void localRetryWithRequiresNew(String params) {
|
||||||
System.out.println("local retry 方法开始执行");
|
System.out.println("local retry 方法开始执行");
|
||||||
double i = 1 / 0;
|
double i = 1 / 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user