Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Jan 16, 2025
1 parent a95a052 commit 2b8f1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_unit_okta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bool MockIDP::curlGetCall(SFURL& url, jsonObject_t& resp, bool parseJSON, std::s
{
rawData = "<form action=\"https&#x3a;&#x2f;&#x2f;host.com&#x2f;fed&#x2f;login/";
if (isCurlGetRequestFailed) {
m_errMsg = "SFConnectionFailed:curlGetCall";
IDPAuthenticator::m_errMsg = "SFConnectionFailed:curlGetCall";
}
return !isCurlGetRequestFailed;
}
Expand All @@ -64,7 +64,7 @@ bool MockIDP::curlPostCall(SFURL& url, const jsonObject_t& obj, jsonObject_t& re
resp["data"] = picojson::value(data);
resp["sessionToken"] = picojson::value("onetimetoken");
if (isPostCallFailed) {
m_errMsg = "SFConnectionFailed:curlPostCall";
IDPAuthenticator::m_errMsg = "SFConnectionFailed:curlPostCall";
}

//The curlPostCall is called twice in authenticator 1. getIDPInfo 2. get onetime token
Expand Down

0 comments on commit 2b8f1df

Please sign in to comment.