@@ -23,28 +23,28 @@ func TestGet(t *testing.T) {
2323 t .Errorf ("Expected cache to return `world` for `hello`" )
2424 }
2525
26- //Check to see if cleanup is clearing unexpired items
26+ // Check to see if cleanup is clearing unexpired items
2727 time .Sleep (time .Millisecond * 200 )
2828 data , exists = cache .Get ("hello" )
2929 if ! exists || data == nil {
3030 t .Errorf ("Expected cache to return data" )
3131 }
3232
33- //Check Cache is re-touching after a get
33+ // Check Cache is re-touching after a get
3434 time .Sleep (time .Millisecond * 200 )
3535 data , exists = cache .Get ("hello" )
3636 if ! exists || data == nil {
3737 t .Errorf ("Expected cache to return data" )
3838 }
3939
40- //Check Cache is optionally re-touching after a get
40+ // Check Cache is optionally re-touching after a get
4141 time .Sleep (time .Millisecond * 200 )
4242 data , exists = cache .TouchGet ("hello" , false )
4343 if ! exists || data == nil {
4444 t .Errorf ("Expected cache to return data" )
4545 }
4646
47- //Make sure cache clears after expiry
47+ // Make sure cache clears after expiry
4848 time .Sleep (time .Millisecond * 200 )
4949 data , exists = cache .Get ("hello" )
5050 if exists || data != nil {
@@ -69,7 +69,7 @@ func TestMaxLifetime(t *testing.T) {
6969 t .Errorf ("Expected cache to return `world` for `hello`" )
7070 }
7171
72- //Check to see if max lifetime has killed the item
72+ // Check to see if max lifetime has killed the item
7373 time .Sleep (time .Millisecond * 200 )
7474 data , exists = cache .Get ("hello" )
7575 if exists || data != nil {
0 commit comments