test code push

This commit is contained in:
geek 2017-04-26 16:04:28 +09:00
parent 5dfe829b88
commit 50f80fb220
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ func (lq *LoafleQueue) Close() {
observer.Remove(lq.queueType, lq.eventChanel)
}
}
func NewLoafleQueue(eventType EventType, interval time.Duration) *LoafleQueue {
func NewQueue(eventType EventType, interval time.Duration) *LoafleQueue {
items := make([]*item, 0)
event := make(chan interface{}, 0)

View File

@ -6,8 +6,8 @@ import (
"testing"
)
func TestNewLoafleQueue(t *testing.T) {
lq := NewLoafleQueue(EVENT_TYPE, 5)
func TestNewQueue(t *testing.T) {
lq := NewQueue(EVENT_TYPE, 5)
typeEvent := lq.StringType(EVENT_TYPE)
observer.Notify(typeEvent, "data")