Skip to content

Commit

Permalink
[cli] fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shahidhk committed Jun 28, 2018
1 parent 59dd23c commit c0bf346
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions cli/Gopkg.toml
Expand Up @@ -24,10 +24,6 @@
# go-tests = true
# unused-packages = true

[[constraint]]
name = "github.com/Masterminds/semver"
version = "1.4.2"

[[constraint]]
name = "github.com/briandowns/spinner"
version = "1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/console_test.go
Expand Up @@ -33,7 +33,7 @@ func TestConsoleCmd(t *testing.T) {
opts.WG.Done()
opts.WG.Done()
}()
err := opts.Run()
err := opts.run()
if err != nil {
t.Fatalf("failed running console: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/init_test.go
Expand Up @@ -41,7 +41,7 @@ func TestInitCmd(t *testing.T) {
if err != nil {
t.Fatalf("%s: prep failed: %v", tc.name, err)
}
err = tc.opts.Run()
err = tc.opts.run()
if err != tc.err {
t.Fatalf("%s: expected %v, got %v", tc.name, tc.err, err)
} else {
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/migrate_apply_test.go
Expand Up @@ -25,7 +25,7 @@ func testMigrateApply(t *testing.T, endpoint string, migrationsDir string) {
upMigration: "1",
}

err := opts.Run()
err := opts.run()
if err != nil {
t.Fatalf("failed applying migration: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/migrate_create_test.go
Expand Up @@ -24,7 +24,7 @@ func TestMigrateCreateCmd(t *testing.T) {
name: "create_article",
}

err := opts.Run()
err := opts.run()
if err != nil {
t.Fatalf("failed creating migration: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion cli/commands/migrate_status_test.go
Expand Up @@ -24,7 +24,7 @@ func testMigrateStatus(t *testing.T, endpoint string, migrationsDir string, expe
},
}

err := opts.Run()
err := opts.run()
if err != nil {
t.Fatalf("failed fetching migration status: %v", err)
}
Expand Down

0 comments on commit c0bf346

Please sign in to comment.