Fix case
Some checks failed
Build / cleanup-runs (pull_request) Successful in 5s
Build / build (pull_request) Successful in 25s
Deploy Contract / cleanup-runs (pull_request) Failing after 8s
CodeQL / Analyze (go) (pull_request) Successful in 49s
Pull Request Labeler / triage (pull_request) Failing after 22s
Dependency Review / dependency-review (pull_request) Successful in 1m15s
Deploy Contract / deploy (pull_request) Failing after 50s
Lint / Run flake8 on python integration tests (pull_request) Failing after 22s
Protobuf / lint (pull_request) Successful in 23s
Lint / Run golangci-lint (pull_request) Successful in 40s
Tests / cleanup-runs (pull_request) Failing after 11s
Semgrep / Scan (pull_request) Failing after 27s
Run Gosec / Gosec (pull_request) Successful in 21s
Protobuf / break-check (pull_request) Successful in 31s
Tests / test-importer (pull_request) Successful in 35s
Tests / test-rpc (pull_request) Successful in 34s
Tests / test-unit-cover (pull_request) Successful in 59s
Tests / sdk_tests (pull_request) Failing after 1m29s

This commit is contained in:
Thomas E Lackey 2023-11-20 14:46:07 -06:00
parent 7ea9a26cc8
commit a3e1eec0c8
2 changed files with 5 additions and 9 deletions

View File

@ -10,9 +10,8 @@ laconicd_rest_endpoint=http://laconicd:1317
laconicd_gql_endpoint=http://laconicd:9473/api laconicd_gql_endpoint=http://laconicd:9473/api
# Run tests # Run tests
docker network inspect sdk_tests_default docker network inspect sdk_tests_default
sleep 30s docker compose logs laconicd
docker logs laconicd docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
docker compose exec laconicd sh -c "curl http://127.0.0.1:9473/api" docker compose exec laconicd sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://localhost:9473/api"
docker compose exec laconicd sh -c "curl http://localhost:9473/api"
docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test" docker compose exec sdk-test-runner sh -c "COSMOS_CHAIN_ID=${cosmos_chain_id} LACONICD_REST_ENDPOINT=${laconicd_rest_endpoint} LACONICD_GQL_ENDPOINT=${laconicd_gql_endpoint} PRIVATE_KEY=${laconicd_key} yarn test"

View File

@ -338,10 +338,7 @@ func (k Keeper) ProcessAttributes(ctx sdk.Context, record types.RecordType) erro
} }
} }
} }
case "WebsiteRegistrationRecord": case "WebsiteRegistrationRecord", "ApplicationRecord", "WebAppDeploymentRecord", "GeneralRecord":
case "ApplicationRecord":
case "WebAppDeploymentRecord":
case "GeneralRecord":
{ {
// #nosec G705 // #nosec G705
for key := range record.Attributes { for key := range record.Attributes {
@ -392,7 +389,7 @@ func (k Keeper) GetAttributeMapping(ctx sdk.Context, key []byte) ([]string, erro
store := ctx.KVStore(k.storeKey) store := ctx.KVStore(k.storeKey)
if !store.Has(key) { if !store.Has(key) {
return nil, fmt.Errorf("store doesn't have key") return nil, fmt.Errorf("store doesn't have key: %q", key)
} }
var recordIds []string var recordIds []string