Skip to content

Commit

Permalink
feat: PR comments addressed
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed Dec 16, 2024
1 parent 438f833 commit c0f6367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SessionManagerTest {
fun test_createSession() {
val context = InstrumentationRegistry.getInstrumentation().context
val sessionId = SessionManager.generateRandomSessionKey()
sessionManager = SessionManager(context, 86400, context.packageName, sessionId)
sessionManager = SessionManager(context, 86400, context.packageName, sessionId, "*")
val json = JSONObject()
json.put(
"privateKey",
Expand Down Expand Up @@ -68,7 +68,7 @@ class SessionManagerTest {
fun test_invalidateSession() {
val context = InstrumentationRegistry.getInstrumentation().context
val sessionId = SessionManager.generateRandomSessionKey()
sessionManager = SessionManager(context, 86400, context.packageName, sessionId)
sessionManager = SessionManager(context, 86400, context.packageName, sessionId, "sfa")
val json = JSONObject()
json.put(
"privateKey",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SessionManager(
sessionTime: Int = 86400,
allowedOrigin: String = "*",
sessionId: String? = null,
sessionNamespace: String? = "*"
sessionNamespace: String? = null
) {

private val gson = GsonBuilder().disableHtmlEscaping().create()
Expand Down

0 comments on commit c0f6367

Please sign in to comment.