@@ -13,7 +13,7 @@ import (
1313type contextKey string
1414
1515func TestContextRegistry_StoreAndRetrieve (t * testing.T ) {
16- r := newContextRegistry (1 * time .Second , 5 * time .Second )
16+ r := newContextRegistry (1 * time .Second , 5 * time .Second , nil )
1717 defer r .Shutdown ()
1818
1919 ctx := context .WithValue (context .Background (), contextKey ("key" ), "value" )
@@ -25,7 +25,7 @@ func TestContextRegistry_StoreAndRetrieve(t *testing.T) {
2525}
2626
2727func TestContextRegistry_RetrieveNotFound (t * testing.T ) {
28- r := newContextRegistry (1 * time .Second , 5 * time .Second )
28+ r := newContextRegistry (1 * time .Second , 5 * time .Second , nil )
2929 defer r .Shutdown ()
3030
3131 retrieved , found := r .Retrieve ("nonexistent-id" )
@@ -34,7 +34,7 @@ func TestContextRegistry_RetrieveNotFound(t *testing.T) {
3434}
3535
3636func TestContextRegistry_Delete (t * testing.T ) {
37- r := newContextRegistry (1 * time .Second , 5 * time .Second )
37+ r := newContextRegistry (1 * time .Second , 5 * time .Second , nil )
3838 defer r .Shutdown ()
3939
4040 ctx := context .WithValue (context .Background (), contextKey ("key" ), "value" )
@@ -51,7 +51,7 @@ func TestContextRegistry_Delete(t *testing.T) {
5151
5252func TestContextRegistry_Cleanup (t * testing.T ) {
5353 // Use short TTL for a faster test
54- r := newContextRegistry (100 * time .Millisecond , 200 * time .Millisecond )
54+ r := newContextRegistry (100 * time .Millisecond , 200 * time .Millisecond , nil )
5555 defer r .Shutdown ()
5656
5757 ctx := context .WithValue (context .Background (), contextKey ("key" ), "value" )
@@ -69,7 +69,7 @@ func TestContextRegistry_Cleanup(t *testing.T) {
6969}
7070
7171func TestContextRegistry_Size (t * testing.T ) {
72- r := newContextRegistry (1 * time .Second , 5 * time .Second )
72+ r := newContextRegistry (1 * time .Second , 5 * time .Second , nil )
7373 defer r .Shutdown ()
7474
7575 assert .Equal (t , 0 , r .Size ())
@@ -86,7 +86,7 @@ func TestContextRegistry_Size(t *testing.T) {
8686}
8787
8888func TestContextRegistry_ConcurrentAccess (t * testing.T ) {
89- r := newContextRegistry (1 * time .Second , 5 * time .Second )
89+ r := newContextRegistry (1 * time .Second , 5 * time .Second , nil )
9090 defer r .Shutdown ()
9191
9292 done := make (chan bool )
0 commit comments