Skip to content

Commit 8160722

Browse files
committed
Fix test
1 parent e50a07e commit 8160722

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/integration/feed_repo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func TestFeedRepo(t *testing.T) {
2626
var rss RSS
2727
err := xml.Unmarshal(resp.Body.Bytes(), &rss)
2828
assert.NoError(t, err)
29-
assert.Equal(t, "http://localhost:3003/user2/repo1", rss.Channel.Link)
29+
assert.Contains(t, rss.Channel.Link, "/user2/repo1")
3030
assert.NotEmpty(t, rss.Channel.PubDate)
3131
assert.Len(t, rss.Channel.Items, 1)
3232
assert.EqualValues(t, "issue5", rss.Channel.Items[0].Description)

tests/integration/feed_user_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestFeedUser(t *testing.T) {
5353
var rss RSS
5454
err := xml.Unmarshal(resp.Body.Bytes(), &rss)
5555
assert.NoError(t, err)
56-
assert.Equal(t, "http://localhost:3003/user2", rss.Channel.Link)
56+
assert.Contains(t, rss.Channel.Link, "/user2")
5757
assert.NotEmpty(t, rss.Channel.PubDate)
5858
})
5959
})

0 commit comments

Comments
 (0)