diff options
| author | Jeroen Wijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-29 15:08:32 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-04-29 15:08:32 +0200 |
| commit | 0e1f9826f2aea1a059529f9c3d1c921d7d4ac3d4 (patch) | |
| tree | 2d26bd6dbd33abde910bff00078f520dad890a4d /state_test.go | |
| parent | 6c7a1c7a9245cf457a86fd15bdc14bc93b55d508 (diff) | |
Secure Internet: Basic implementation and add support to cli
Diffstat (limited to 'state_test.go')
| -rw-r--r-- | state_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/state_test.go b/state_test.go index 5f37147..4320a6d 100644 --- a/state_test.go +++ b/state_test.go @@ -59,7 +59,7 @@ func Test_server(t *testing.T) { stateCallback(t, old, new, data, state) }, false) - _, configErr := state.Connect(serverURI) + _, configErr := state.ConnectInstituteAccess(serverURI) if configErr != nil { t.Errorf("Connect error: %v", configErr) @@ -82,7 +82,7 @@ func test_connect_oauth_parameter(t *testing.T, parameters internal.URLParameter } }, false) - _, configErr := state.Connect(serverURI) + _, configErr := state.ConnectInstituteAccess(serverURI) if !errors.As(configErr, expectedErr) { t.Errorf("error %T = %v, wantErr %T", configErr, configErr, expectedErr) @@ -130,7 +130,7 @@ func Test_token_expired(t *testing.T) { stateCallback(t, old, new, data, state) }, false) - _, configErr := state.Connect(serverURI) + _, configErr := state.ConnectInstituteAccess(serverURI) if configErr != nil { t.Errorf("Connect error before expired: %v", configErr) @@ -174,7 +174,7 @@ func Test_token_invalid(t *testing.T) { stateCallback(t, old, new, data, state) }, false) - _, configErr := state.Connect(serverURI) + _, configErr := state.ConnectInstituteAccess(serverURI) if configErr != nil { t.Errorf("Connect error before invalid: %v", configErr) |
