Skip to content

Commit

Permalink
feat: fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoxkang committed Feb 19, 2025
1 parent 8ee8072 commit a57acdb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/EoaServer.DbMigrator/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"ConnectionStrings": {
"Default": "mongodb://admin:[email protected]:27017,portkey-eoa-mongodb-1.portkey-eoa-mongodb:27017,portkey-eoa-mongodb-2.portkey-eoa-mongodb:27017/?retryWrites=false&maxPoolSize=555"
"Default": "mongodb://127.0.0.1:27017/EoaServer?retryWrites=false"
},
"OpenIddict": {
"Applications": {
Expand All @@ -24,7 +24,7 @@
},
"ElasticUris": {
"Uris": [
"portkey-eoa-es-http:9200"
"http://127.0.0.1:9200"
]
},
"IndexSetting": {
Expand Down
5 changes: 0 additions & 5 deletions src/EoaServer.HttpApi.Host/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
"Redis": {
"Configuration": "127.0.0.1"
},
"AuthServer": {
"Authority": "https://auth-aa-portkey-test.portkey.finance",
"RequireHttpsMetadata": "false",
"SwaggerClientId": "CAServer_App"
},
"StringEncryption": {
"DefaultPassPhrase": "gaMgs0gtsqpYZUTn"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public override void ConfigureServices(ServiceConfigurationContext context)
{
NotUnknownContracts = new List<string>()
};
options.TypeMap = new Dictionary<string, string>();
options.TransactionTypeMap = new Dictionary<string, string>();
options.ShowNftTypes = new List<string>();
});

Configure<TokenSpenderOptions>(options =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ public async void GetTokenAsyncTest()
result.Data.Count.ShouldBe(3);
result.Data[0].Symbol.ShouldBe("ELF");
result.Data[0].ImageUrl.ShouldBe(EoaServerApplicationTestConstant.TokenElfIcon);
result.Data[0].Balance.ShouldBe("3");
result.Data[0].Balance.ShouldBe("300000000");
result.Data[0].Tokens.Count.ShouldBe(2);
result.Data[0].Tokens[0].ChainId.ShouldBe(EoaServerApplicationTestConstant.ChainIdTDVW);
result.Data[0].Tokens[0].Balance.ShouldBe("1");
result.Data[0].Tokens[0].Balance.ShouldBe("100000000");
result.Data[0].Tokens[1].ChainId.ShouldBe(EoaServerApplicationTestConstant.ChainIdAELF);
result.Data[0].Tokens[1].Balance.ShouldBe("2");
result.Data[0].Tokens[1].Balance.ShouldBe("200000000");
result.Data[1].Symbol.ShouldBe("SGR-1");
result.Data[1].Tokens.Count.ShouldBe(2);
result.Data[1].Balance.ShouldBe("1");
result.Data[1].Balance.ShouldBe("100000000");
result.Data[1].Tokens[0].ChainId.ShouldBe(EoaServerApplicationTestConstant.ChainIdTDVW);
result.Data[1].Tokens[0].Balance.ShouldBe("1");
result.Data[1].Tokens[0].Balance.ShouldBe("100000000");
result.Data[1].Tokens[1].ChainId.ShouldBe(EoaServerApplicationTestConstant.ChainIdAELF);
result.Data[1].Tokens[1].Balance.ShouldBe("0");
// default show
Expand Down

0 comments on commit a57acdb

Please sign in to comment.