def test_expiration_time_parsing(self, containerregistry_endpoint):
        from azure.containerregistry._authentication_policy import ContainerRegistryChallengePolicy
        client = self.create_registry_client(containerregistry_endpoint)

        for repo in client.list_repository_names():
            pass

        for policy in client._client._client._pipeline._impl_policies:
            if isinstance(policy, ContainerRegistryChallengePolicy):
                policy._exchange_client._expiration_time = 0
                break

        count = 0
        for repo in client.list_repository_names():
            count += 1

        assert count >= 1