From eea454c977513c4be67d6f1efb3aa01b43b86690 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 19 Oct 2022 11:34:38 +0200 Subject: Client Test: Fix selenium python script path --- client/client_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client') diff --git a/client/client_test.go b/client/client_test.go index 68a6be0..f386c3c 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -45,14 +45,14 @@ func loginOAuthSelenium(t *testing.T, url string, state *Client) { // We could use the go selenium library // But it does not support the latest selenium v4 just yet var errBuffer strings.Builder - err := runCommand(t, &errBuffer, "python3", "selenium_eduvpn.py", url) + err := runCommand(t, &errBuffer, "python3", "../selenium_eduvpn.py", url) if err != nil { - t.Fatalf( + _ = state.CancelOAuth() + panic(fmt.Sprintf( "Login OAuth with selenium script failed with error %v and stderr %s", err, errBuffer.String(), - ) - _ = state.CancelOAuth() + )) } } @@ -67,7 +67,7 @@ func stateCallback( url, ok := data.(string) if !ok { - t.Fatalf("data is not a string for OAuth URL") + t.Fatalf("data is not a string for OAuth URL") } loginOAuthSelenium(t, url, state) } -- cgit v1.2.3