mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
entc/integration: truncate items table before each test (#564)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user