agrafix / agrafix/users

uncaught exception happened when i run the test suite of users-persistent

オープン
#27 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
51
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

説明

Authentification
Migrating: CREATE TABLE "login"("id" INTEGER PRIMARY KEY,"created_at" TIMESTAMP NOT NULL,"username" VARCHAR NOT NULL,"email" VARCHAR NOT NULL,"password" VARCHAR NOT NULL,"active" BOOLEAN NOT NULL,CONSTRAINT "unique_username" UNIQUE ("username"),CONSTRAINT "unique_email" UNIQUE ("email"))
Migrating: CREATE TABLE "login_token"("id" INTEGER PRIMARY KEY,"token" VARCHAR NOT NULL,"token_type" VARCHAR NOT NULL,"created_at" TIMESTAMP NOT NULL,"valid_until" TIMESTAMP NOT NULL,"owner" INTEGER NOT NULL REFERENCES "login" ON DELETE RESTRICT ON UPDATE RESTRICT,CONSTRAINT "unique_token" UNIQUE ("token"),CONSTRAINT "unique_typed_token" UNIQUE ("token","token_type"))

auth as valid user with username should work FAILED [1]

Failures:

src/Web/Users/TestSpec.hs:182:9:
1)
Authentification auth as valid user with username should work
uncaught exception: SqliteException
SQLite3 returned ErrorConstraint while attempting to perform step: FOREIGN KEY constraint failed

To rerun use: --match "/\nAuthentification/auth as valid user with username should work/"

Randomized with seed 125537557

Finished in 0.2932 seconds
1 example, 1 failure

users-persistent> Test suite users-persistent-tests failed
Completed 3 action(s).
The 'package-indices' key is deprecated in favour of 'package-index'.

Error: [S-7282]
Stack failed to execute the build plan.

While executing the build plan, Stack encountered the following errors:

TestSuiteFailure (PackageIdentifier {pkgName = PackageName "users-persistent", pkgVersion = mkVersion [0,5,0,2,1]}) (fromList [("users-persistent-tests",Just (ExitFailure 1))]) Nothing ""

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。