Debugging test case for pos-resource error #125
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a debugging test case for #119 (comment)
pos-resource
currently assumes thatthis.uri
is defined. It is not clear to me whether it is safe for it to do so.The test fails if
this.uri
is not checked and passes if it does - but still with the same warning.My current understanding of what is happening:
componentWillLoad
is called on pos-resource B beforethis.uri
is set. This does not happen without the pre-existing pos-resource A.this.uri
)uri
is set, loadResource is called a second timeThis is essentially a race condition on
os
being received and set beforeuri
is set, but it is not yet clear whether:Given that this issue is only appearing through test pollution, it's not yet clear to me what new test I would add to
pos-resource
related to this issue.Edit: A possible follow-up action is to test whether the duplicate fetch call does happen in production.