Skip to content

Commit c8196c4

Browse files
authored
Make tests more robust to version changes (#6582) (#6583)
1 parent af05237 commit c8196c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/integration-tests/src/commonTest/kotlin/test/LoggingInterceptorTest.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package test
22

33
import com.apollographql.apollo.ApolloClient
44
import com.apollographql.apollo.api.Upload
5+
import com.apollographql.apollo.api.apolloApiVersion
56
import com.apollographql.apollo.integration.normalizer.HeroNameQuery
67
import com.apollographql.apollo.integration.upload.SingleUploadMutation
78
import com.apollographql.mockserver.MockServer
@@ -142,8 +143,8 @@ class LoggingInterceptorTest {
142143
Post http://0.0.0.0/
143144
accept: multipart/mixed;deferspec=20220824, application/graphql-response+json, application/json
144145
[end of headers]
145-
{"operationName":"HeroName","variables":{},"query":"query HeroName { hero { name } }","extensions":{"clientlibrary":{"name":"apollo-kotlin","version":"5.0.0-snapshot"}}}
146-
146+
{"operationName":"HeroName","variables":{},"query":"query HeroName { hero { name } }","extensions":{"clientlibrary":{"name":"apollo-kotlin","version":"$apolloApiVersion"}}}
147+
147148
HTTP: 200
148149
Content-Type: text/plain
149150
Content-Length: 322
@@ -183,7 +184,7 @@ class LoggingInterceptorTest {
183184
Post http://0.0.0.0/
184185
accept: multipart/mixed;deferspec=20220824, application/graphql-response+json, application/json
185186
[end of headers]
186-
{"operationName":"HeroName","variables":{},"query":"query HeroName { hero { name } }","extensions":{"clientlibrary":{"name":"apollo-kotlin","version":"5.0.0-snapshot"}}}
187+
{"operationName":"HeroName","variables":{},"query":"query HeroName { hero { name } }","extensions":{"clientlibrary":{"name":"apollo-kotlin","version":"$apolloApiVersion"}}}
187188
188189
HTTP: 200
189190
Content-Type: text/plain

0 commit comments

Comments
 (0)