Fixes #6224: Prevent increasing db pool size in test environment.