diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-19 11:34:38 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-10-19 11:34:38 +0200 |
| commit | eea454c977513c4be67d6f1efb3aa01b43b86690 (patch) | |
| tree | 7ac7c05c3b9ae20d354fddce37c6dd913aa133a6 | |
| parent | 6aced56a28fa52e4796aa1aa139e4323b4154aca (diff) | |
Client Test: Fix selenium python script path
| -rw-r--r-- | client/client_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
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) } |
