# Make cross-channel import tests work on any release channel branch \(\#54022\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/41b6d9333c1f13eef2e0cc0f21c324ecb5deb27f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 41b6d9333c1f13eef2e0cc0f21c324ecb5deb27f

Requested commit: 41b6d9333c1f13eef2e0cc0f21c324ecb5deb27f

Commit: 41b6d9333c1f13eef2e0cc0f21c324ecb5deb27f

Tree: 6c577a48262ba35f995fdeda03cee7bf7537db7a

Author: Eric Holk

Committer: GitHub

## Message

```
Make cross-channel import tests work on any release channel branch (#54022)

The cross-channel import tests from #54002 hardcoded
`ReleaseChannel::Preview` and `ReleaseChannel::Nightly` as source
channels. When those tests run on a release branch (where the current
channel is Preview or Nightly), the import skips the current channel,
causing test failures.

This adds a `foreign_channels` helper that dynamically picks two
channels that are neither the current one nor Dev, making the tests work
on main, preview, nightly, or any other branch.

Discovered while cherry-picking #54002 to v0.233.x (#54021).

Release Notes:

- N/A
```

## Parents

- [a8decbea137e267928f2aae12d0b31d912e34645](https://git.cafe/gitcafe/zed/commit/a8decbea137e267928f2aae12d0b31d912e34645?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/41b6d9333c1f13eef2e0cc0f21c324ecb5deb27f?format=markdown)
