on main help sign in
increase timeout to 3min
e3ca9feRaphael Amorim
internal/permission/permission.go+1−1
@@ -118,7 +118,7 @@ func (s *permissionService) Request(opts CreatePermissionRequest) bool {
118 s.Publish(pubsub.CreatedEvent, permission)
118 s.Publish(pubsub.CreatedEvent, permission)
119
119
120 // Wait for the response with a timeout to prevent indefinite blocking
120 // Wait for the response with a timeout to prevent indefinite blocking
121− ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
121+ ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
122 defer cancel()
122 defer cancel()
123
123
124 select {
124 select {