From 0e1f9826f2aea1a059529f9c3d1c921d7d4ac3d4 Mon Sep 17 00:00:00 2001 From: Jeroen Wijenbergh Date: Fri, 29 Apr 2022 15:08:32 +0200 Subject: Secure Internet: Basic implementation and add support to cli --- state_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'state_test.go') 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) -- cgit v1.2.3