Skip to content

Commit 71965d8

Browse files
committed
fixup test with incorrect reference
1 parent 77da925 commit 71965d8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codersdk/deployment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ type HTTPCookieConfig struct {
591591
SameSite string `json:"same_site,omitempty" typescript:",notnull"`
592592
}
593593

594-
func (cfg HTTPCookieConfig) Apply(c *http.Cookie) *http.Cookie {
594+
func (cfg *HTTPCookieConfig) Apply(c *http.Cookie) *http.Cookie {
595595
c.Secure = cfg.Secure.Value()
596596
c.SameSite = cfg.HTTPSameSite()
597597
return c

enterprise/coderd/coderdenttest/proxytest.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func NewWorkspaceProxyReplica(t *testing.T, coderdAPI *coderd.API, owner *coders
156156
RealIPConfig: coderdAPI.RealIPConfig,
157157
Tracing: coderdAPI.TracerProvider,
158158
APIRateLimit: coderdAPI.APIRateLimit,
159-
SecureAuthCookie: coderdAPI.SecureAuthCookie,
159+
CookieConfig: coderdAPI.Cookies,
160160
ProxySessionToken: token,
161161
DisablePathApps: options.DisablePathApps,
162162
// We need a new registry to not conflict with the coderd internal

0 commit comments

Comments
 (0)