Skip to content
This repository was archived by the owner on Apr 3, 2019. It is now read-only.

Conversation

@shane-tomlinson
Copy link

@shane-tomlinson shane-tomlinson commented Aug 15, 2018

This is to help @deeptibaghel with #334. I added a ton of logging to Deepti's PR and Hapi and noticed that a route's scope value was being updated for every test suite, the next test suite would then use the implicant values from the previous suite as it's scopes.

This makes a copy of the route definition which is safe to mutate. Still a WIP because I would expect tests to be failing on master too, and I'm not sure why they aren't.

cc @rfk, @vladikoff, @deeptibaghel

@ghost ghost assigned shane-tomlinson Aug 15, 2018
@ghost ghost added the waffle:active label Aug 15, 2018
@shane-tomlinson shane-tomlinson changed the title fix(test): Avoid cross test pollution caused by mutating route objects. [WIP] fix(test): Avoid cross test pollution caused by mutating route objects. Aug 15, 2018
@deeptibaghel
Copy link
Contributor

@shane-tomlinson 👍 👍

@vladikoff
Copy link
Contributor

We need this to progress! 👍 🍰

@rfk rfk self-assigned this Aug 20, 2018
@vladikoff
Copy link
Contributor

@deeptibaghel we need to find why the reason why this patch is needed in hapi 17 and not in the current version that we are using

@shane-tomlinson
Copy link
Author

I'd be happy for @deeptibaghel to use this to progress in other areas of her PR, but it makes me nervous that I still do not understand the root cause of why this is needed with hapi 17 and not the previous version. It's almost like the require cache is being used w/ hapi 17, but wasn't before.

@vladikoff vladikoff changed the title [WIP] fix(test): Avoid cross test pollution caused by mutating route objects. fix(test): Avoid cross test pollution caused by mutating route objects. Jan 2, 2019
@vladikoff vladikoff force-pushed the deepCopy-route-definition branch from 9661c3e to 769d17d Compare January 2, 2019 16:53
@ghost ghost assigned vladikoff Jan 2, 2019
@ghost ghost added waffle:active and removed waffle:backlog labels Jan 2, 2019
@vladikoff vladikoff removed the WIP label Jan 2, 2019
@vladikoff vladikoff merged commit 45e593d into master Jan 2, 2019
@ghost ghost removed the waffle:active label Jan 2, 2019
@vladikoff vladikoff deleted the deepCopy-route-definition branch January 2, 2019 16:58
@vladikoff
Copy link
Contributor

We need this continue working on the Hapi updates. I ran some tests and things seemed in order 👍

@shane-tomlinson
Copy link
Author

Hey, I forgot I had this PR open! Thanks @vladikoff!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants