Exit test early if setup fails (#4842)

Reduce what needs searched through for debugging by exiting early.

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [x] 🧹 Tech Debt/Cleanup


#### Test Plan

- [x] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
ashmrtn 2023-12-13 17:36:15 -08:00 committed by GitHub
parent ddabfc3b3a
commit 3866ed2368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1061,6 +1061,12 @@ func (suite *ExchangeRestoreNightlyIntgSuite) TestRestore_Run_exchangeWithAdvanc
checkRestoreCounts(t, ctr1, 0, 0, countItemsInRestore) checkRestoreCounts(t, ctr1, 0, 0, countItemsInRestore)
}) })
// Exit the test if the baseline failed as it'll just cause more failures
// later.
if t.Failed() {
return
}
// skip restore // skip restore
suite.Run("skip collisions", func() { suite.Run("skip collisions", func() {