Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
af2565a6
Commit
af2565a6
authored
4 years ago
by
Akshay Bharambe
Browse files
Options
Downloads
Patches
Plain Diff
Update: JWT tests
parent
0cfde640
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!210
Staging mepdeployment05072020
,
!200
Add: Session control
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
authmdl/jwtmdl/jwtmdl_test.go
+5
-1
authmdl/jwtmdl/jwtmdl_test.go
with
5 additions
and
1 deletion
authmdl/jwtmdl/jwtmdl_test.go
+
5
−
1
View file @
af2565a6
...
...
@@ -82,7 +82,7 @@ func TestDecodeTokenvalid(t *testing.T) {
// }
func
TestGenerateTokenWithOptions
(
t
*
testing
.
T
)
{
sessionmdl
.
InitSession
Manager
Cache
(
cachemdl
.
TypeFastCache
)
sessionmdl
.
Init
User
SessionCache
(
cachemdl
.
TypeFastCache
)
type
args
struct
{
args
[]
Option
...
...
@@ -127,6 +127,10 @@ func TestGenerateTokenWithOptions(t *testing.T) {
return
}
if
got
!=
""
{
t
.
Error
(
got
)
}
fmt
.
Println
(
got
)
})
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets