Skip to content

stern: make api version check a unit test#3131

Merged
smatting merged 2 commits intodevelopfrom
smatting/stern-test-supported-api
Mar 6, 2023
Merged

stern: make api version check a unit test#3131
smatting merged 2 commits intodevelopfrom
smatting/stern-test-supported-api

Conversation

@smatting
Copy link
Contributor

@smatting smatting commented Mar 6, 2023

This PR removes the runtime check introduced #3036 and replaces it with a unit test.

Also the overly restrictive test condition

maximum (vinfoSupported vinfo) == backendApiVersion

is replaced with

backendApiVersion `elem` (vinfoSupported vinfo)

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Mar 6, 2023
@smatting smatting changed the title stern: make api version test a unit test stern: make api version check a unit test Mar 6, 2023
@smatting smatting merged commit ee025fe into develop Mar 6, 2023
@smatting smatting deleted the smatting/stern-test-supported-api branch March 6, 2023 18:30
@@ -0,0 +1 @@
Remove overly restricte api check
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arguably it's overly restrictive to make sure we're running into this early, and not when we have to make the version bump. but that's clearly arguable, yes. :)

lepsa pushed a commit to lepsa/wire-server that referenced this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments