From d556fa35fffd8ac0647ecf169ca2885a87389461 Mon Sep 17 00:00:00 2001 From: Paul Balogh Date: Thu, 23 May 2024 13:43:10 -0500 Subject: [PATCH] Fixing broken tests due to additional seed data --- internal/db/place_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/db/place_test.go b/internal/db/place_test.go index d721595..95624c0 100644 --- a/internal/db/place_test.go +++ b/internal/db/place_test.go @@ -20,7 +20,7 @@ func TestDatabase_GetPlaces(t *testing.T) { places, err := placeDB.GetPlaces() assert.NoError(t, err) - assert.Equal(t, 10, len(places)) + assert.Equal(t, 20, len(places)) } func TestDatabase_GetPlaceByID(t *testing.T) { @@ -45,7 +45,7 @@ func TestDatabase_CreatePlace(t *testing.T) { placeDB := setupDatabase(t) newPlace := &model.Place{ - ID: 20, + ID: 9999, Name: "Kerid Crater", Description: "Kerid Crater, Iceland", Latitude: 64.04126,