Skip to content

Commit c079abd

Browse files
committed
testing
1 parent d3b6765 commit c079abd

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)