# Different behavior in finalizing container between Dry::Rails and Dry::System::Rails

**URL:** <https://discourse.dry-rb.org/t/different-behavior-in-finalizing-container-between-dry-rails-and-dry-rails/1129>\
**Category:** Support\
**Created:** [September 3, 2020, 8:12am UTC](https://discourse.dry-rb.org/t/different-behavior-in-finalizing-container-between-dry-rails-and-dry-rails/1129 "2020-09-03T08:12:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefanrendevski](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@stefanrendevski](https://discourse.dry-rb.org/u/stefanrendevski)\
**Post date:** [September 3, 2020, 8:12am UTC](https://discourse.dry-rb.org/t/different-behavior-in-finalizing-container-between-dry-rails-and-dry-rails/1129/1 "2020-09-03T08:12:06Z")

</div>

I recently saw that the Dry::System::Rails project was no longer maintained, and merged into Dry::Rails.

I noticed a difference in behavior between the two Railties. Dry::System::Rails does not finalize the container in test environment, while Dry::Rails does finalize it, but does not freeze it. This causes all the boot files to be started immediately.

Is this an intended change?

The reason I am asking this is because I have multiple boot files for app components, with setup logic including event subscription etc. In test environment, I stub the event subscription broker and then boot the relevant components, so that they use the stubbed broker to subscribe to. However, when I tried swapping `dry_system_rails` with `dry_rails`, the components get booted before I am able to stub the broker.

Can I propose to return the logic of not finalizing the application container in test environment?

---

<div class="post-metadata">

**Author:** ![solnic](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/solnic/32/779_2.png) [@solnic](https://discourse.dry-rb.org/u/solnic)\
**Post date:** [September 7, 2020, 8:08am UTC](https://discourse.dry-rb.org/t/different-behavior-in-finalizing-container-between-dry-rails-and-dry-rails/1129/2 "2020-09-07T08:08:41Z")

</div>

@stefanrendevski yes, please report an issue about it. The truth is, testing setup is not fully there yet ☹
