entc/integration: truncate items table before each test (#564)

This commit is contained in:
Ariel Mashraki
2020-06-23 16:12:49 +03:00
committed by GitHub
parent 3e7481c3a0
commit e1c8ec1dce

View File

@@ -1100,6 +1100,7 @@ func drop(t *testing.T, client *ent.Client) {
t.Log("drop data from database")
ctx := context.Background()
client.Pet.Delete().ExecX(ctx)
client.Item.Delete().ExecX(ctx)
client.File.Delete().ExecX(ctx)
client.Card.Delete().ExecX(ctx)
client.Node.Delete().ExecX(ctx)