Skip to content

Commit

Permalink
feat: fix e2e case wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
xjlgod committed Oct 25, 2024
1 parent e3c6d9b commit 4ce2247
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public class SagaTransactionStarter {
private static final Logger LOGGER = LoggerFactory.getLogger(SagaTransactionStarter.class);

public static void main(String[] args) throws InterruptedException {
// if (isInE2ETest()) {
// // wait seata-server
// Thread.sleep(5000);
// }
if (isInE2ETest()) {
// wait provider
Thread.sleep(3000);
}

AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SagaTransactionStarter.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ service {
#transaction service group mapping
vgroupMapping.my_test_tx_group = "default"
#only support when registry.type=file, please don't set multiple addresses
default.grouplist = "seata:8091"
default.grouplist = "127.0.0.1:8091"
#degrade, current not support
enableDegrade = false
#disable seata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public static void main(String[] args) throws Exception {
}

private void start0(String[] args) throws Exception {
// if (isInE2ETest()) {
// // wait seata-server
// Thread.sleep(5000);
// }
if (isInE2ETest()) {
// wait provider
Thread.sleep(3000);
}

ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext();
context.setValidating(false); // 关闭 XML 验证
Expand Down

0 comments on commit 4ce2247

Please sign in to comment.