Configurable RoomService execution timeout (#1206)
* API execution timeout is now configurable In certain environments, it can take longer than the default 2s to fully execute API requests. Making execution timeout a configurable option. * do not expose api to YAML. internal for now.
This commit is contained in:
@@ -107,7 +107,9 @@ func newTestRoomService(conf config.RoomConfig) *TestRoomService {
|
||||
router := &routingfakes.FakeRouter{}
|
||||
allocator := &servicefakes.FakeRoomAllocator{}
|
||||
store := &servicefakes.FakeServiceStore{}
|
||||
svc, err := service.NewRoomService(conf, router, allocator, store, nil)
|
||||
svc, err := service.NewRoomService(conf,
|
||||
config.APIConfig{ExecutionTimeout: 2},
|
||||
router, allocator, store, nil)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user