aboutsummaryrefslogtreecommitdiff
path: root/main_test.go
diff options
context:
space:
mode:
authorEvgeny Kuznetsov <evgeny@kuznetsov.md>2020-02-04 17:46:50 +0300
committerEvgeny Kuznetsov <evgeny@kuznetsov.md>2020-02-04 17:46:50 +0300
commit3e4bef162ed0d24ba2de3af82a4a3d6e489f33af (patch)
tree338d1e177aaaa4a1de795121b7799c3dd1ad9c4f /main_test.go
parentf25632cbc7c4871f295c5e63dbf0eb14cdcc6907 (diff)
downloadradiorus-rss-3e4bef162ed0d24ba2de3af82a4a3d6e489f33af.tar.gz
radiorus-rss-3e4bef162ed0d24ba2de3af82a4a3d6e489f33af.zip
remove redundant tests
Diffstat (limited to 'main_test.go')
-rw-r--r--main_test.go27
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)