Skip to content

Commit

Permalink
Pacify linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jan 27, 2020
1 parent e0d44ce commit c63a148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/ddev/cmd/import-db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func TestCmdImportDB(t *testing.T) {
assert.Equal("Tables_in_db\nusers\n", out)

// Test with named project (outside project directory)
os.Chdir("/tmp")
err = os.Chdir("/tmp")
assert.NoError(err)

// Run the import-db command with stdin coming from users.sql
byteout, err := exec.Command(DdevBin, "import-db", app.Name, "--target-db=sparedb", "-f="+inputFile).CombinedOutput()
Expand Down
1 change: 1 addition & 0 deletions pkg/ddevapp/ddevapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,7 @@ func TestDdevExportDB(t *testing.T) {
assert.NoError(err)
importPath = "tmp/anotherdb.sql.gz"
err = app.ImportDB(importPath, "", false, false, "thirddb")
assert.NoError(err)
out, _, err := app.Exec(&ddevapp.ExecOpts{
Service: "db",
Cmd: fmt.Sprintf(`echo "SELECT COUNT(*) FROM users;" | mysql -N thirddb`),
Expand Down

0 comments on commit c63a148

Please sign in to comment.