@@ -15,10 +15,6 @@ import (
1515func  TestNewSessionManager (t  * testing.T ) {
1616	manager  :=  NewSessionManager (testLogger ())
1717
18- 	if  manager  ==  nil  {
19- 		t .Fatal ("Expected non-nil manager" )
20- 	}
21- 
2218	if  manager .sessionDuration  !=  DefaultSessionDuration  {
2319		t .Errorf ("Expected default duration of %v, got %v" , DefaultSessionDuration , manager .sessionDuration )
2420	}
@@ -101,10 +97,6 @@ func TestGetOrCreate(t *testing.T) {
10197		t .Error ("Expected isNew to be true for first call" )
10298	}
10399
104- 	if  session  ==  nil  {
105- 		t .Fatal ("Expected non-nil session" )
106- 	}
107- 
108100	if  session .ID  !=  sessionID  {
109101		t .Errorf ("Expected session ID %s, got %s" , sessionID , session .ID )
110102	}
@@ -123,7 +115,7 @@ func TestGetOrCreate(t *testing.T) {
123115	if  session2 .ID  !=  session .ID  {
124116		t .Error ("Expected sessions to have the same ID" )
125117	}
126- 	 
118+ 
127119	if  session2 .CreatedAt  !=  session .CreatedAt  {
128120		t .Error ("Expected sessions to have the same CreatedAt time" )
129121	}
@@ -385,7 +377,7 @@ func TestConcurrentSessionCreation(t *testing.T) {
385377func  TestConcurrentSessionTermination (t  * testing.T ) {
386378	manager  :=  NewSessionManager (testLogger ())
387379	const  numGoroutines  =  20 
388- 	 
380+ 
389381	// Create multiple sessions 
390382	sessionIDs  :=  make ([]string , numGoroutines )
391383	for  i  :=  0 ; i  <  numGoroutines ; i ++  {
@@ -476,4 +468,4 @@ func TestConcurrentCleanup(t *testing.T) {
476468	if  remaining  !=  0  {
477469		t .Errorf ("Expected 0 sessions remaining after cleanup, got %d" , remaining )
478470	}
479- }
471+ }
0 commit comments