mirror of
https://github.com/ent/ent.git
synced 2026-04-30 06:30:55 +03:00
ent/ci: avoid ci trigger on doc changes
This commit is contained in:
@@ -20,7 +20,7 @@ import (
|
||||
func TestXXX(t *testing.T) {
|
||||
client := enttest.Open(t, "sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
|
||||
defer client.Close()
|
||||
// ...
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -28,12 +28,12 @@ In order to pass functional options to `Open`, use `enttest.Option`:
|
||||
|
||||
```go
|
||||
func TestXXX(t *testing.T) {
|
||||
opts := []enttest.Option{
|
||||
enttest.WithOptions(ent.Log(t.Log)),
|
||||
enttest.WithMigrateOptions(migrate.WithGlobalUniqueID(true)),
|
||||
}
|
||||
opts := []enttest.Option{
|
||||
enttest.WithOptions(ent.Log(t.Log)),
|
||||
enttest.WithMigrateOptions(migrate.WithGlobalUniqueID(true)),
|
||||
}
|
||||
client := enttest.Open(t, "sqlite3", "file:ent?mode=memory&cache=shared&_fk=1", opts...)
|
||||
defer client.Close()
|
||||
// ...
|
||||
// ...
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user