diff options
author | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-02-04 17:46:50 +0300 |
---|---|---|
committer | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2020-02-04 17:46:50 +0300 |
commit | 3e4bef162ed0d24ba2de3af82a4a3d6e489f33af (patch) | |
tree | 338d1e177aaaa4a1de795121b7799c3dd1ad9c4f /main_test.go | |
parent | f25632cbc7c4871f295c5e63dbf0eb14cdcc6907 (diff) | |
download | radiorus-rss-3e4bef162ed0d24ba2de3af82a4a3d6e489f33af.tar.gz radiorus-rss-3e4bef162ed0d24ba2de3af82a4a3d6e489f33af.zip |
remove redundant tests
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main_test.go b/main_test.go index 1c6363b..96c8d11 100644 --- a/main_test.go +++ b/main_test.go @@ -87,7 +87,6 @@ func TestFindEpisodes(t *testing.T) { var tests = []string{ "episodes", "episodes.59798", - "episodes.63147", } for _, test := range tests { @@ -133,32 +132,6 @@ func TestUpdatingFeed(t *testing.T) { } } -func TestVideoFeed(t *testing.T) { - var page []byte - - feed := &feeds.Feed{ - Link: &feeds.Link{Href: "http://www.radiorus.ru/brand/63147/episodes"}, - } - - page = helperLoadBytes(t, "episodes.63147") - page = cleanText(page) - - if err := populateFeed(feed, page); err != nil { - t.Fatal(err) - } - - actual := createFeed(feed) - golden := filepath.Join("testdata", t.Name()+".golden") - if *update { - writeFile(actual, golden) - } - expected, _ := ioutil.ReadFile(golden) - - if !bytes.Equal(actual, expected) { - t.Fail() - } -} - func TestMissingEpisode(t *testing.T) { server := helperMockServer(t) defer helperCleanupServer(t) |