CodeChain-io / CodeChain-io/codechain-indexer
Inserting a row to the AssetImages table fails in the "test/-asset.spec.ts" test
- Langage dominant
- TypeScript
- Étoiles
- 21
- Forks
- 15
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
You can run the command below to make the error.
```
NODE_ENV=test yarn mocha --exit -r ts-node/register --timeout 60000 --recursive test/api/asset.spec.ts
```
Here is the log from the Postgresql when you run the command above.
```
2019-11-18 17:00:42.129 KST [72847] ERROR: insert or update on table "AssetImages" violates foreign key constraint "AssetImages_assetType_fkey"
2019-11-18 17:00:42.129 KST [72847] DETAIL: Key (assetType)=(b03745e7296053068a1ac475b377656574b394d3) is not present in table "AssetSchemes".
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Run NODE_ENV=test yarn mocha --exit -r ts-node/register --timeout 60000 --recursive test/api/asset.spec.ts and inspect test/api/asset.spec.ts first. Trace the AssetImages insert and the AssetImages_assetType_fkey relationship to AssetSchemes; done means the test no longer fails with the reported PostgreSQL foreign-key error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- postgresql, typescript
- Domaine
- databases, testing-qa
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100