mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-29 08:57:18 +02:00
atomicutil: use atomicutil.Value wherever possible (#3517)
* atomicutil: use atomicutil.Value wherever possible * fix test * fix mux router
This commit is contained in:
parent
5c14d2c994
commit
0ac7e45a21
23 changed files with 121 additions and 215 deletions
|
@ -12,6 +12,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/pomerium/pomerium/config"
|
||||
"github.com/pomerium/pomerium/internal/atomicutil"
|
||||
"github.com/pomerium/pomerium/internal/encoding"
|
||||
"github.com/pomerium/pomerium/internal/encoding/mock"
|
||||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
|
@ -538,7 +539,7 @@ func TestProxy_jwt(t *testing.T) {
|
|||
w := httptest.NewRecorder()
|
||||
|
||||
proxy := &Proxy{
|
||||
state: newAtomicProxyState(&proxyState{}),
|
||||
state: atomicutil.NewValue(&proxyState{}),
|
||||
}
|
||||
err := proxy.jwtAssertion(w, req)
|
||||
if !assert.Error(t, err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue