agrafix / agrafix/users

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

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Haskell
Stelle
51
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.