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

middleware/chaos: fix version #669

Merged
merged 2 commits into from
May 22, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests
  • Loading branch information
miekg committed May 22, 2017
commit d82a029b29ec843eea645be72621e19b6f556df6
9 changes: 0 additions & 9 deletions middleware/chaos/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package chaos

import (
"fmt"
"strings"
"testing"

Expand All @@ -17,20 +16,12 @@ func TestSetupChaos(t *testing.T) {
expectedErrContent string // substring from the expected error. Empty for positive cases.
}{
// positive
{
`chaos`, false, defaultVersion, "", "",
},
{
`chaos v2`, false, "v2", "", "",
},
{
`chaos v3 "Miek Gieben"`, false, "v3", "Miek Gieben", "",
},
{
fmt.Sprintf(`chaos {
%s
}`, defaultVersion), false, defaultVersion, "", "",
},
}

for i, test := range tests {
Expand Down