From cb669709122342c2dc221e5ad848680b64d7dfc2 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko <pavlenko.maksym@gmail.com> Date: Sun, 13 Aug 2017 21:34:47 -0700 Subject: [PATCH] Update PG tests --- web/pkg/storage/pg_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/pkg/storage/pg_test.go b/web/pkg/storage/pg_test.go index 7d7bd09..70324f9 100644 --- a/web/pkg/storage/pg_test.go +++ b/web/pkg/storage/pg_test.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/require" ) -func TestCreate(t *testing.T) { +func TestPgStorage_CreateFeed(t *testing.T) { feed := &api.Feed{ HashId: "xyz", Provider: api.Youtube, @@ -21,7 +21,7 @@ func TestCreate(t *testing.T) { require.True(t, feed.Id > 0) } -func TestCreateDuplicate(t *testing.T) { +func TestPgStorage_CreateFeedWithDuplicate(t *testing.T) { feed := &api.Feed{ HashId: "123", Provider: api.Youtube, @@ -48,7 +48,7 @@ func TestCreateDuplicate(t *testing.T) { require.Equal(t, 1, count) } -func TestGetFeed(t *testing.T) { +func TestPgStorage_GetFeed(t *testing.T) { feed := &api.Feed{ HashId: "xyz", UserId: "123", @@ -65,7 +65,7 @@ func TestGetFeed(t *testing.T) { require.Equal(t, feed.Id, out.Id) } -func TestUpdateLastAccess(t *testing.T) { +func TestPgStorage_UpdateLastAccess(t *testing.T) { feed := &api.Feed{ HashId: "xyz", UserId: "123",