CodeChain-io / CodeChain-io/codechain-indexer

Inserting a row to the AssetImages table fails in the "test/-asset.spec.ts" test

Đang mở
#338 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
21
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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".
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
postgresql, typescript
Lĩnh vực
databases, testing-qa
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.