Skip to content

Commit

Permalink
⚗️ Try bigger localstack timeouts on tables
Browse files Browse the repository at this point in the history
  • Loading branch information
elgohr committed Dec 25, 2023
1 parent ef534ba commit e6009d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions localstack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ func TestLocalStackWithContext(t *testing.T) {
t.Run(s.name, func(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
l, err := localstack.NewInstance(s.input...)
opts := append([]localstack.InstanceOption{localstack.WithTimeout(10 * time.Minute)}, s.input...)
l, err := localstack.NewInstance(opts...)
require.NoError(t, err)
require.NoError(t, l.StartWithContext(ctx))
s.expect(t, l)
Expand All @@ -255,7 +256,7 @@ func TestLocalStackWithIndividualServicesOnContext(t *testing.T) {
for service := range localstack.AvailableServices {
t.Run(service.Name, func(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
l, err := localstack.NewInstance()
l, err := localstack.NewInstance(localstack.WithTimeout(15 * time.Minute))
require.NoError(t, err)
require.NoError(t, l.StartWithContext(ctx, service))
for testService := range localstack.AvailableServices {
Expand Down Expand Up @@ -286,7 +287,7 @@ func TestLocalStackWithIndividualServices(t *testing.T) {
cl := &http.Client{Timeout: time.Second}
for service := range localstack.AvailableServices {
t.Run(service.Name, func(t *testing.T) {
l, err := localstack.NewInstance()
l, err := localstack.NewInstance(localstack.WithTimeout(15 * time.Minute))
require.NoError(t, err)
require.NoError(t, l.Start(service))
for testService := range localstack.AvailableServices {
Expand Down

0 comments on commit e6009d0

Please sign in to comment.