File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
pkg/sysdb/metastore/db/dbcore Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ build: proto
29
29
30
30
test : build
31
31
go clean -testcache
32
- go test -v -race -cover ./...
32
+ go test -p 1 - v -race -cover ./...
33
33
34
34
35
35
lint :
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ func GetDBConfigForTesting() DBConfig {
224
224
dbName := "chroma"
225
225
dbUsername := "chroma"
226
226
dbPassword := "chroma"
227
- container , _ = postgres2 .RunContainer (context .Background (),
227
+ container , err : = postgres2 .RunContainer (context .Background (),
228
228
testcontainers .WithImage ("docker.io/postgres:15.2-alpine" ),
229
229
postgres2 .WithDatabase (dbName ),
230
230
postgres2 .WithUsername (dbUsername ),
@@ -235,6 +235,10 @@ func GetDBConfigForTesting() DBConfig {
235
235
WithStartupTimeout (5 * time .Second )),
236
236
)
237
237
238
+ if err != nil {
239
+ panic (err )
240
+ }
241
+
238
242
var ports nat.PortMap
239
243
ports , _ = container .Ports (context .Background ())
240
244
Original file line number Diff line number Diff line change 1
- LOCK_FILE=" /tmp/atlas_migrate.lock"
2
-
3
- exec 200> " $LOCK_FILE "
4
- if ! flock -n 200; then
5
- echo " Waiting for another atlas instance to complete..."
6
- flock 200
7
- fi
8
-
9
1
atlas schema apply \
10
2
-u " $1 " \
11
3
--to file://pkg/log/store/schema/ \
12
4
--dev-url " docker://postgres/15/dev" \
13
5
--auto-approve
14
-
15
- flock -u 200
You can’t perform that action at this time.
0 commit comments