Skip to content

Commit

Permalink
fix nil errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kkumar-gcc committed Sep 17, 2024
1 parent c9670a9 commit 70f858b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions session/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,11 @@ func (s *ManagerTestSuite) TestBuildSession() {

s.mockConfig.On("GetString", "session.cookie").Return("test_cookie").Once()
session, err := s.manager.BuildSession(driver)
session.Put("name", "goravel")

s.Nil(err)
s.NotNil(session)

session.Put("name", "goravel")

s.Equal("test_cookie", session.GetName())
s.Equal("goravel", session.Get("name"))

Expand Down

0 comments on commit 70f858b

Please sign in to comment.