-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate testing/test #2639
Migrate testing/test #2639
Conversation
5152a75
to
39b6d47
Compare
e3be1ea
to
f2bdee3
Compare
39b6d47
to
7a529a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
011c23c
to
6137074
Compare
6137074
to
9800a57
Compare
@@ -109,6 +112,8 @@ open class CodyIntegrationTextFixture : BasePlatformTestCase(), LensListener { | |||
} | |||
|
|||
private fun checkInitialConditions() { | |||
isAuthenticated() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not matter.
With the check the tests fail with User is not authenticated
assertion error.
Without it it fails with:
junit.framework.ComparisonFailure: Action description should be empty expected:<[]> but was:<[Log in to Sourcegraph to enable Cody features]>
at junit.framework.Assert.assertEquals(Assert.java:100)
at junit.framework.TestCase.assertEquals(TestCase.java:253)
at com.sourcegraph.cody.util.CodyIntegrationTextFixture.checkInitialConditions(CodyIntegrationTextFixture.kt:140)
9800a57
to
42947df
Compare
closing in favour of sourcegraph/cody#6293 |
This PR is a part of the protocol migration. Some endpoints are written by hand. We are switching to the protocol generated from Cody. In this PR:
Based on PR #2638
Full chain of PRs as of 2024-11-13
mkondratek/chore/migrate-api-part-5
➔mkondratek/chore/migrate-api-part-4
mkondratek/chore/migrate-api-part-4
➔mkondratek/chore/migrate-api-part-3x
mkondratek/chore/migrate-api-part-3x
➔main
Test plan