Skip to content

Commit

Permalink
docs: comments for server test
Browse files Browse the repository at this point in the history
  • Loading branch information
aggregat4 committed Dec 18, 2024
1 parent a63811b commit acd3ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ func createTestUser(t *testing.T, controller server.Controller) {

// construct a test HTTP client with cookie support so we can transport the CSRF token
// and suppressed redirects so we can assert against the location header
// createTestHttpClient returns an HTTP client with cookie support and disabled redirects.
// This is useful for testing scenarios where you need to assert against the location header.
func createTestHttpClient() *http.Client {
jar, _ := cookiejar.New(nil)
return &http.Client{
Expand Down

0 comments on commit acd3ef5

Please sign in to comment.