Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nonsense committed May 8, 2023
1 parent 97826ec commit 7dee686
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion extern/boostd-data/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ services:

yugabyte:
image: public.ecr.aws/n6b0k8i7/yugabyte-test:x86_64-2.17.2.0
#image: public.ecr.aws/n6b0k8i7/yugabyte-test:aarch64-2.17.2.0
ports:
- 9042:9042
- 5432:5432
- 5433:5432
#- 7000:7000
- 9000:9000
restart: on-failure

go-tests:
Expand Down
3 changes: 2 additions & 1 deletion extern/boostd-data/svc/setup_yugabyte_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ func awaitYugabyteUp(t *testing.T, duration time.Duration) {
for {
session, err := cluster.CreateSession()
if err == nil {
time.Sleep(5 * time.Second)
return
}
_ = session
Expand All @@ -93,6 +94,6 @@ func awaitYugabyteUp(t *testing.T, duration time.Duration) {
if time.Since(start) > duration {
t.Fatalf("failed to start yugabyte within %s", duration)
}
time.Sleep(time.Second)
time.Sleep(5 * time.Second)
}
}
2 changes: 1 addition & 1 deletion piecedirectory/doctor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestPieceDoctor(t *testing.T) {
prev := yugabyte.MinPieceCheckPeriod
yugabyte.MinPieceCheckPeriod = 1 * time.Second

// svc.SetupYugabyte(t)
svc.SetupYugabyte(t)

bdsvc := svc.NewYugabyte(yugabyte.DBSettings{
Hosts: []string{"yugabyte"},
Expand Down
2 changes: 1 addition & 1 deletion piecedirectory/piecedirectory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestPieceDirectory(t *testing.T) {
})

t.Run("yugabyte", func(t *testing.T) {
// svc.SetupYugabyte(t)
svc.SetupYugabyte(t)

bdsvc := svc.NewYugabyte(yugabyte.DBSettings{
Hosts: []string{"yugabyte"},
Expand Down

0 comments on commit 7dee686

Please sign in to comment.