-
-
Notifications
You must be signed in to change notification settings - Fork 87
chore(ci): add testing on Java 17 and dependabot #113
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
Conversation
Valid failure on 17 I need to check out. |
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.
Ok, this should make it all 🟢
|
||
val res3 = requests.post( | ||
"https://httpbin.org/post", | ||
compress = requests.Compress.Deflate, | ||
data = new RequestBlob.ByteSourceRequestBlob("Hear me moo") | ||
) | ||
assert(read(new String(res2.bytes))("data").toString == | ||
""""data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="""") | ||
assert(read(new String(res3.bytes))("data").toString == |
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.
I believe this was supposed to be res3
, not res2
or else we're never doing anything with res3
.
@@ -191,16 +191,15 @@ object RequestTests extends TestSuite{ | |||
compress = requests.Compress.Gzip, | |||
data = new RequestBlob.ByteSourceRequestBlob("I am cow") | |||
) | |||
assert(read(new String(res2.bytes))("data").toString == | |||
""""data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="""") | |||
assert(read(new String(res2.bytes))("data").toString.contains("data:application/octet-stream;base64,H4sIAAAAAA")) |
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.
This is interesting. So this was changed in #108 from a contains
like I have here to an exact match. However, I notice a difference between Java 8 and 17 here. With 8 you'll get
// "data:application/octet-stream;base64,H4sIAAAAAAAAAPNUSMxVSM4vBwCAGeD4CAAAAA=="
but with 17 you'll get
// "data:application/octet-stream;base64,H4sIAAAAAAAA//NUSMxVSM4vBwCAGeD4CAAAAA=="
I'm not exactly sure why, but is this potentially why it used to be a contains
instead of an exact match to account for this? Is there something different with gzip between 8 and 17 here, and that's also why it doesn't change for the Deflate
example down below?
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.
Looks good to me.
No description provided.