mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Add errcheck and fix unchecked errors
This commit is contained in:
parent
913234a60d
commit
c6aba53e51
7 changed files with 40 additions and 13 deletions
|
|
@ -20,7 +20,8 @@ func newContext() *cli.Context {
|
|||
}
|
||||
|
||||
func TestGetDatabaseUrl_Default(t *testing.T) {
|
||||
os.Setenv("DATABASE_URL", "postgres://example.org/db")
|
||||
err := os.Setenv("DATABASE_URL", "postgres://example.org/db")
|
||||
require.Nil(t, err)
|
||||
|
||||
ctx := newContext()
|
||||
u, err := main.GetDatabaseURL(ctx)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue