summaryrefslogtreecommitdiff
path: root/state_test.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2022-04-29 15:08:32 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-29 15:08:32 +0200
commit0e1f9826f2aea1a059529f9c3d1c921d7d4ac3d4 (patch)
tree2d26bd6dbd33abde910bff00078f520dad890a4d /state_test.go
parent6c7a1c7a9245cf457a86fd15bdc14bc93b55d508 (diff)
Secure Internet: Basic implementation and add support to cli
Diffstat (limited to 'state_test.go')
-rw-r--r--state_test.go8
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)