agrafix / agrafix/users

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

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

Mô tả

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

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

Đánh giá

Issue này chưa được đánh giá.

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.