Skip to content

Commit 723ddd9

Browse files
committed
cleanup
1 parent 7987af0 commit 723ddd9

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

.aci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ STC扫描:
1717
checkRule:
1818
- stc = 0
1919

20-
# see https://yuque.antfin.com/linke/help/kg1p34#pBvc2
2120
单元测试:
2221
stage: 测试
2322
plugin: LINKQ-UT # java单元测试插件
@@ -33,7 +32,6 @@ STC扫描:
3332
markdown: admin/result.md # 向页面输出一些自定义内容
3433
aciTags: 8G
3534

36-
#see https://code.alipay.com/common_release/avatarpoc/blob/master/.aci.test.yml
3735
集成测试:
3836
stage: 测试
3937
plugin: LINKQ-IT # java集成测试插件

.master.aci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ STC扫描:
2424
pluginConfig:
2525
markdown: admin/result.md # 向页面输出一些自定义内容
2626

27-
#see https://code.alipay.com/common_release/avatarpoc/blob/master/.aci.test.yml
2827
集成测试:
2928
stage: 测试
3029
plugin: LINKQ-IT # java集成测试插件

server/common/model/src/test/java/com/alipay/sofa/registry/common/model/slot/Crc32cSlotFunctionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class Crc32cSlotFunctionTest {
2424
@Test
2525
public void test() {
2626
Crc32cSlotFunction function = new Crc32cSlotFunction(256);
27-
System.out.println(function.slotOf("paychecker#@#DEFAULT_INSTANCE_ID#@#SOFA_APP"));
27+
System.out.println(function.slotOf("aaaaaaaaaa"));
2828

2929
System.out.println(new Date(1624591989649L));
3030
}

server/server/meta/src/test/java/com/alipay/sofa/registry/common/model/slot/BaseSlotFunctionTest.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@
2121
import com.alipay.sofa.registry.util.JsonUtils;
2222
import java.io.File;
2323
import java.io.IOException;
24+
import java.util.ArrayList;
2425

2526
/**
2627
* @author chen.zhu
2728
* <p>Jan 13, 2021
2829
*/
2930
public class BaseSlotFunctionTest extends AbstractMetaServerTestBase {
3031

31-
public String[] getDataInfoIds() throws IOException {
32-
String fileContent =
33-
new String(
34-
FileUtils.readFileToByteArray(new File("src/test/resources/test/data_info_ids.json")));
35-
return JsonUtils.read(fileContent, String[].class);
32+
public String[] getDataInfoIds() {
33+
ArrayList<String> list = new ArrayList<>();
34+
for(int i=0;i<10000;i++){
35+
list.add(String.format("dataInfoId-%s", i));
36+
}
37+
return list.toArray(new String[]{});
3638
}
3739
}

server/server/session/src/test/java/com/alipay/sofa/registry/server/session/slot/SlotTableCacheImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class SlotTableCacheImplTest extends AbstractSessionServerTestBase {
3939
@Test
4040
public void testSlotOf() {
4141

42-
int i = slotTableCache.slotOf("pubprocess:12200#@#DEFAULT_INSTANCE_ID#@#SOFA_APP");
42+
int i = slotTableCache.slotOf("foo#@#DEFAULT_INSTANCE_ID#@#SOFA_APP");
4343

4444
String dataInfoId = randomString();
4545
int slotId = slotTableCache.slotOf(dataInfoId);

0 commit comments

Comments
 (0)