File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ func TestCaptchaCookieAttributes(t *testing.T) {
2929
3030 // Create a test request with HTTPS scheme
3131 r := httptest .NewRequest ("GET" , "https://example.com/test" , nil )
32+ // Explicitly set scheme to ensure test reliability
33+ r .URL .Scheme = "https"
3234
3335 // Set a test captcha cookie
3436 uuidStr := "test-uuid-123"
@@ -74,6 +76,8 @@ func TestCaptchaCookieAttributesHTTP(t *testing.T) {
7476
7577 // Create a test request with HTTP scheme
7678 r := httptest .NewRequest ("GET" , "http://example.com/test" , nil )
79+ // Explicitly set scheme to ensure test reliability
80+ r .URL .Scheme = "http"
7781
7882 // Set a test captcha cookie
7983 uuidStr := "test-uuid-123"
@@ -114,6 +118,8 @@ func TestOAuthCookieAttributes(t *testing.T) {
114118
115119 // Create a test request with HTTPS scheme
116120 r := httptest .NewRequest ("GET" , "https://example.com/test" , nil )
121+ // Explicitly set scheme to ensure test reliability
122+ r .URL .Scheme = "https"
117123
118124 // Set a test OAuth access token cookie
119125 cookie := & http.Cookie {
You can’t perform that action at this time.
0 commit comments