-
Notifications
You must be signed in to change notification settings - Fork 22
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
AF-157 don't add repeated data #310
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on HipChat: InfoSec Forum. |
@@ -0,0 +1,70 @@ | |||
// Copyright 2018 Workiva Inc. |
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.
Let's just put this directly in the test/unit/http/
dir instead of a browser/
subdir. There's already one other file that only runs in the browser and the @TestOn()
annotation + the browser
in the test file name communicates that requirement effectively.
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.
Just the one comment, otherwise this looks great!
|
||
final FormDataBody body = await request.finalizeBody(); | ||
final List<Blob> blobs = body.formData.getAll(key); | ||
expect(blobs.length, equals(1)); |
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.
tests are failing on the dart2 dev channel because the return type for formData.getAll()
is List<Object>
, so the typing of List<Blob>
fails strong mode.
Need to change this to something like:
final FormDataBody body = await request.finalizeBody();
expect(body.formData.getAll(key), hasLength(1));
… into AF-157_repeated-data
+10
QA +1
@Workiva/release-management-p |
Problem
FormData was getting added to the request twice.
Solution
Don't add it twice.
Testing Suggestion