vars_test.go 315 B

1234567891011121314151617
  1. package handler
  2. import (
  3. "GtDataStore/app/model"
  4. "testing"
  5. "time"
  6. )
  7. func TestEventBindCacheMap_SetCache(t *testing.T) {
  8. eventBindCacheTable.SetCache("xxxx", make([]model.DcEventBind, 5), time.Now().Add(10*time.Second))
  9. for {
  10. time.Sleep(1 * time.Second)
  11. t.Log(eventBindCacheTable.GetCache("xxxx"))
  12. }
  13. }