diff --git a/tests/sentry/plugins/test_integration_repository.py b/tests/sentry/plugins/test_integration_repository.py index 882cfc7d6c68..1666f97045df 100644 --- a/tests/sentry/plugins/test_integration_repository.py +++ b/tests/sentry/plugins/test_integration_repository.py @@ -346,14 +346,14 @@ def test_create_repositories__does_not_adopt_over_an_existing_row( external_id=self.config["external_id"], ) legacy.update(status=ObjectStatus.HIDDEN) - existing = self._create_repo(external_id=self.config["external_id"]) + self._create_repo(external_id=self.config["external_id"]) created, reactivated, missing = self.provider.create_repositories( [self.config], self.organization ) assert created == [] - assert {repo.id for repo in reactivated} == {existing.id} + assert reactivated == [] assert missing == [self.provider.build_repository_config(self.organization, self.config)] legacy.refresh_from_db() assert (legacy.status, legacy.provider) == (ObjectStatus.HIDDEN, "github")