Skip to content

Commit 51d9e01

Browse files
authored
Merge pull request #305 from apollographql/GT-375
test: hardcoded version strings in tests
2 parents 29b8e52 + 4df5481 commit 51d9e01

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Hardcoded version strings in tests - @DaleSeo PR #305
2+
3+
The GraphQL tests have hardcoded version strings that we need to update manually each time we release a new version. Since this isn't included in the release checklist, it's easy to miss it and only notice the test failures later.

crates/apollo-mcp-server/src/graphql.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod test {
187187
"extensions": {
188188
"clientLibrary": {
189189
"name":"mcp",
190-
"version":"0.7.4"
190+
"version": std::env!("CARGO_PKG_VERSION")
191191
}
192192
},
193193
"operationName":"mock_operation"
@@ -233,7 +233,7 @@ mod test {
233233
},
234234
"clientLibrary": {
235235
"name":"mcp",
236-
"version":"0.7.4"
236+
"version": std::env!("CARGO_PKG_VERSION")
237237
}
238238
},
239239
})

0 commit comments

Comments
 (0)