Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dzdx committed Dec 13, 2021
1 parent 7987af0 commit 723ddd9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .aci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ STC扫描:
checkRule:
- stc = 0

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

#see https://code.alipay.com/common_release/avatarpoc/blob/master/.aci.test.yml
集成测试:
stage: 测试
plugin: LINKQ-IT # java集成测试插件
Expand Down
1 change: 0 additions & 1 deletion .master.aci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ STC扫描:
pluginConfig:
markdown: admin/result.md # 向页面输出一些自定义内容

#see https://code.alipay.com/common_release/avatarpoc/blob/master/.aci.test.yml
集成测试:
stage: 测试
plugin: LINKQ-IT # java集成测试插件
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class Crc32cSlotFunctionTest {
@Test
public void test() {
Crc32cSlotFunction function = new Crc32cSlotFunction(256);
System.out.println(function.slotOf("paychecker#@#DEFAULT_INSTANCE_ID#@#SOFA_APP"));
System.out.println(function.slotOf("aaaaaaaaaa"));

System.out.println(new Date(1624591989649L));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@
import com.alipay.sofa.registry.util.JsonUtils;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

/**
* @author chen.zhu
* <p>Jan 13, 2021
*/
public class BaseSlotFunctionTest extends AbstractMetaServerTestBase {

public String[] getDataInfoIds() throws IOException {
String fileContent =
new String(
FileUtils.readFileToByteArray(new File("src/test/resources/test/data_info_ids.json")));
return JsonUtils.read(fileContent, String[].class);
public String[] getDataInfoIds() {
ArrayList<String> list = new ArrayList<>();
for(int i=0;i<10000;i++){
list.add(String.format("dataInfoId-%s", i));
}
return list.toArray(new String[]{});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class SlotTableCacheImplTest extends AbstractSessionServerTestBase {
@Test
public void testSlotOf() {

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

String dataInfoId = randomString();
int slotId = slotTableCache.slotOf(dataInfoId);
Expand Down

0 comments on commit 723ddd9

Please sign in to comment.