Skip to content
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

Bugfix: Allow support for screen types with extremely long full type names #236

Merged
merged 1 commit into from Mar 30, 2014

Conversation

eric-winkler
Copy link
Contributor

Because the screen identifier is later used to build a filename, extremely long type names (such as those from generic types) end up exceeding the 260 char limit on windows and tend to crash a test when disposing a ScreenRepository.

The test is a little ugly (relies on knowledge of the WindowItemsMap internals) as in the current implementation, it's essentially an integration issue between the ID generated by the ScreenRepository and the filename generated in WindowItemsMap.

A couple of approaches that could allow for this issue to be managed at a unit test level;

  • Changing the Identifier type on InitializeOption from string to Guid
  • Changing the Identifier type on InitializeOption from string to Type

@eric-winkler
Copy link
Contributor Author

The CI run has fallen over, appreciate if you could take a look Jake.

@JakeGinnivan
Copy link
Member

Seems to be fine now, and looks good

Are there any issues with existing WindowItemMap files then reading this is? Does it just fail and delete the current one?

@eric-winkler
Copy link
Contributor Author

Any existing WindowItemMap file will effectively be orphaned (it will look for an existing file name based on a GUID, not find it and just assume there is no file to restore from). I can't see any cleanup code for these files so I imagine they just hang around forever - but that's probably not a problem (ie same behavior as when a screen type is renamed).

JakeGinnivan added a commit that referenced this pull request Mar 30, 2014
Bugfix: Allow support for screen types with extremely long full type names
@JakeGinnivan JakeGinnivan merged commit 5fa36b4 into TestStack:master Mar 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants