Skip to content

Commit f2db619

Browse files
committed
run sequentially
1 parent f9afe40 commit f2db619

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

go/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ build: proto
2929

3030
test: build
3131
go clean -testcache
32-
go test -v -race -cover ./...
32+
go test -p 1 -v -race -cover ./...
3333

3434

3535
lint:

go/pkg/sysdb/metastore/db/dbcore/core.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func GetDBConfigForTesting() DBConfig {
224224
dbName := "chroma"
225225
dbUsername := "chroma"
226226
dbPassword := "chroma"
227-
container, _ = postgres2.RunContainer(context.Background(),
227+
container, err := postgres2.RunContainer(context.Background(),
228228
testcontainers.WithImage("docker.io/postgres:15.2-alpine"),
229229
postgres2.WithDatabase(dbName),
230230
postgres2.WithUsername(dbUsername),
@@ -235,6 +235,10 @@ func GetDBConfigForTesting() DBConfig {
235235
WithStartupTimeout(5*time.Second)),
236236
)
237237

238+
if err != nil {
239+
panic(err)
240+
}
241+
238242
var ports nat.PortMap
239243
ports, _ = container.Ports(context.Background())
240244

go/script/migrate_up_test.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
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-
91
atlas schema apply \
102
-u "$1" \
113
--to file://pkg/log/store/schema/ \
124
--dev-url "docker://postgres/15/dev" \
135
--auto-approve
14-
15-
flock -u 200

0 commit comments

Comments
 (0)