Add errcheck and fix unchecked errors

This commit is contained in:
Adrian Macneil 2015-11-27 14:27:44 -08:00
parent 913234a60d
commit c6aba53e51
7 changed files with 40 additions and 13 deletions

View file

@ -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)