Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Update dependencies (#94)
Browse files Browse the repository at this point in the history
Note: due to issue 453 [1], there's currently a bit of legwork involved
in updating dependencies.  I used the approach of first switching all
repos in `$GOPATH` to master as a workaround.

[1] tools/godep#453
[2] tools/godep#453 (comment)
  • Loading branch information
wfarner authored and David Chung committed Jul 15, 2016
1 parent 2d9f53d commit a37fb50
Show file tree
Hide file tree
Showing 53 changed files with 557 additions and 346 deletions.
102 changes: 51 additions & 51 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions server/e2e/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func (e *fakeEc2) CreateTags(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error
}

func (e *fakeEc2) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
e.lock.Lock()
defer e.lock.Unlock()

instances := []*ec2.Instance{}
for _, id := range e.instanceIds {
copy := id
Expand Down Expand Up @@ -73,16 +76,25 @@ func (e *fakeEc2) TerminateInstances(input *ec2.TerminateInstancesInput) (*ec2.T
return &ec2.TerminateInstancesOutput{TerminatingInstances: []*ec2.InstanceStateChange{{}}}, nil
}

func (e *fakeEc2) resetIds(ids []string) {
func (e *fakeEc2) maybeResetIds(newIds []string, predicate func([]string) bool) bool {
e.lock.Lock()
defer e.lock.Unlock()
e.instanceIds = ids

if predicate(e.instanceIds) {
e.instanceIds = newIds
return true
}

return false
}

func resetAtTarget(backend *fakeEc2, target int, newIds []string) {
metTargetLength := func(currentIds []string) bool {
return len(currentIds) == target
}

for {
if len(backend.instanceIds) == target {
backend.resetIds(newIds)
if backend.maybeResetIds(newIds, metTargetLength) {
break
}
time.Sleep(5 * time.Millisecond)
Expand Down
1 change: 1 addition & 0 deletions vendor/github.com/Sirupsen/logrus/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions vendor/github.com/Sirupsen/logrus/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions vendor/github.com/Sirupsen/logrus/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/Sirupsen/logrus/entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 6 additions & 9 deletions vendor/github.com/Sirupsen/logrus/formatter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions vendor/github.com/Sirupsen/logrus/logrus.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/github.com/Sirupsen/logrus/text_formatter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a37fb50

Please sign in to comment.