Skip to content

Commit

Permalink
test enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Nov 12, 2023
1 parent de3db55 commit ac5040b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ func TestBlogsync(t *testing.T) {
entryFile = draftFile

t.Log("Check if the draft is fetched and saved in the proper location")
oldTime := time.Date(2006, time.January, 2, 15, 4, 5, 0, time.UTC)
if err := os.Chtimes(entryFile, oldTime, oldTime); err != nil {
t.Fatal(err)
}
if _, err := blogsync("fetch", entryFile); err != nil {
t.Error(err)
}
Expand Down

0 comments on commit ac5040b

Please sign in to comment.