agrafix / agrafix/users

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

Abierto
#27 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Haskell
Estrellas
51
Forks
10
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.