Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
majecty opened this issue Nov 18, 2019 · 0 comments

Comments

@majecty
Copy link
Contributor

majecty commented Nov 18, 2019

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".
@majecty majecty changed the title Insert a row to the AssetImages table fails in the "test/-asset.spec.ts" test Inserting a row to the AssetImages table fails in the "test/-asset.spec.ts" test Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant