Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Archive cycle race condition fix + other fixes #5

Merged
merged 6 commits into from
Apr 13, 2017
Merged

Conversation

izzyblues
Copy link
Contributor

No description provided.

Copy link
Contributor

@peteclark-ft peteclark-ft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@@ -139,10 +139,6 @@ func (s *DefaultReadWriter) GetLatestKeyForID(id string) (string, error) {
return latestKey, nil
}

func getPrefixForID(id string) string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha - yes this was a bit redundant. There was originally a prefix, but I removed it (and left this) 💩

assert.Len(t, c.State(), 1, "The cycle should have one state")
assert.Contains(t, c.State(), startingState, "Cycle should be in running state")

time.Sleep(2 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether these tests should be skipped by -short as they cumulatively sleep for several seconds.

@coveralls
Copy link

Coverage Status

Coverage increased (+8.2%) to 54.296% when pulling 4b139ba on various-fixes into e15b091 on master.

@izzyblues izzyblues merged commit b7fb02f into master Apr 13, 2017
@peteclark-ft peteclark-ft deleted the various-fixes branch April 13, 2017 14:41
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.

None yet

4 participants