diff --git a/build/postgres/Dockerfile b/build/postgres/Dockerfile index ae88ae0..84f6652 100644 --- a/build/postgres/Dockerfile +++ b/build/postgres/Dockerfile @@ -1,3 +1,3 @@ -from postgres +FROM postgres ADD ./docker-compose_test_db_init.sql /docker-entrypoint-initdb.d/ \ No newline at end of file diff --git a/internal/bd/bd.go b/internal/bd/bd.go index 56a729a..34c0ddb 100644 --- a/internal/bd/bd.go +++ b/internal/bd/bd.go @@ -32,7 +32,7 @@ func (b *Bd) Open() error { } func (b *Bd) Close() { - b.db.Close() + b.db.Close(context.Background()) } func (b *Bd) Films() *Filmsrepo {