Skip to content

Commit 43327dc

Browse files
authored
Merge pull request #30 from disco07/main2
testing
2 parents 78b2f61 + c079abd commit 43327dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ func TestGetPosts(t *testing.T) {
3030
// pass 'nil' as the third parameter.
3131
req := httptest.NewRequest("GET", "/posts", nil)
3232

33-
app := newApp()
3433
// We create a ResponseRecorder (which satisfies http.ResponseWriter) to record the response.
34+
app := newApp()
3535
rr := httptest.NewRecorder()
3636
handler := http.HandlerFunc(app.getPosts)
3737

0 commit comments

Comments
 (0)