1
0
Fork 0
mirror of https://github.com/vbatts/sl-feeds.git synced 2025-06-30 06:08:29 +00:00

test: prep for testing other folks' ChangeLog.txt

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-02-27 08:57:04 -05:00
parent 1cca828855
commit de7b0fc949
Signed by: vbatts
GPG key ID: 10937E57733F1362
6 changed files with 2409 additions and 5 deletions

View file

@ -8,7 +8,7 @@ import (
)
func TestFetchChangeLog(t *testing.T) {
server := httptest.NewServer(http.FileServer(http.Dir("../changelog/testdata/")))
server := httptest.NewServer(http.FileServer(http.Dir("../changelog/testdata/slackware64/")))
defer server.Close()
r := Repo{
@ -25,7 +25,7 @@ func TestFetchChangeLog(t *testing.T) {
t.Errorf("expected %d entries; got %d", expectedLen, len(e))
}
stat, err := os.Stat("../changelog/testdata/ChangeLog.txt")
stat, err := os.Stat("../changelog/testdata/slackware64/ChangeLog.txt")
if err != nil {
t.Fatal(err)
}