Skip to content

Commit 210407f

Browse files
committed
update testing
1 parent 9760a4c commit 210407f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main_test.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,13 @@ func TestBlogsync(t *testing.T) {
175175
if err := os.Chtimes(entryFile, oldTime, oldTime); err != nil {
176176
t.Fatal(err)
177177
}
178-
if _, err := blogsync("fetch", entryFile); err != nil {
178+
fetchedFile, err := blogsync("fetch", entryFile)
179+
if err != nil {
179180
t.Error(err)
180181
}
182+
if fetchedFile != entryFile {
183+
t.Errorf("unexpected fetched file: %s", fetchedFile)
184+
}
181185

182186
t.Log("When a draft is published, a URL is issued and the file is saved in the corresponding location")
183187
publishedFile, err := blogsync("push", "--publish", entryFile)

0 commit comments

Comments
 (0)