update error message assertion for github in supervisor_login_test.go

This commit is contained in:
Ryan Richard
2024-05-29 09:45:43 -07:00
parent bb9cb739c6
commit 2bf11ffde1

View File

@@ -613,8 +613,7 @@ func TestSupervisorLogin_Browser(t *testing.T) {
// Get the text of the preformatted error message showing on the page.
textOfPreTag := browser.TextOfFirstMatch(t, "pre")
require.Equal(t,
"Unprocessable Entity: failed to get user info from GitHub API: "+
"user is not allowed to log in due to organization membership policy\n",
"Unprocessable Entity: failed to get user info from GitHub API\n",
textOfPreTag)
},
wantLocalhostCallbackToNeverHappen: true,