Run unit tests in separate databases to avoid conflicts

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-05-08 19:34:29 +02:00
parent e703a54586
commit 3aad02501f
18 changed files with 78 additions and 61 deletions

View File

@@ -70,7 +70,7 @@ func TestLabel_Update(t *testing.T) {
err := Label.Update(*classifyLabel)
if err != nil {
t.Fatal("error")
t.Fatal(err)
}
assert.Equal(t, 5, Label.LabelPriority)
@@ -89,7 +89,7 @@ func TestLabel_Update(t *testing.T) {
err := Label.Update(*classifyLabel)
if err != nil {
t.Fatal("error")
t.Fatal(err)
}
assert.Equal(t, 5, Label.LabelPriority)
@@ -109,7 +109,7 @@ func TestLabel_Update(t *testing.T) {
err := Label.Update(*classifyLabel)
if err != nil {
t.Fatal("error")
t.Fatal(err)
}
assert.Equal(t, 5, Label.LabelPriority)