diff --git a/endpoints/counterRoute_test.go b/endpoints/counterRoute_test.go index 3b77be8..bd8b889 100644 --- a/endpoints/counterRoute_test.go +++ b/endpoints/counterRoute_test.go @@ -96,8 +96,6 @@ func TestCounterHTTPHandlerGETAllPages(t *testing.T) { t.Errorf("Error unmarshalling response: %s", err) } - fmt.Println(result) - if result.Total == 0 { t.Errorf("handler returned unexpected body: got %v want %v", result.Total, 0) @@ -149,8 +147,6 @@ func TestCounterHTTPHandlerGETOnePage(t *testing.T) { t.Errorf("Error unmarshalling response: %s", err) } - fmt.Println(result) - if result.Total == 0 { t.Errorf("handler returned unexpected body: got %v want %v", result.Total, 0) diff --git a/endpoints/helpers_test.go b/endpoints/helpers_test.go index 77bb2f3..5485a15 100644 --- a/endpoints/helpers_test.go +++ b/endpoints/helpers_test.go @@ -40,7 +40,6 @@ func CreatePostgresTestContainer() (*postgres.PostgresContainer, error) { } // StartTestDB returns a new database connection to the counter database. -// A local database is required to run the tests. func StartTestDB(container *postgres.PostgresContainer) (*sqlx.DB, error) { ctx := context.Background() connection, err := container.ConnectionString(ctx,