From 50f80fb220b11c5c8e75df36da65264b0ca8f8de Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 26 Apr 2017 16:04:28 +0900 Subject: [PATCH] test code push --- queue.go | 2 +- queue_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/queue.go b/queue.go index 216dd70..1084c29 100644 --- a/queue.go +++ b/queue.go @@ -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) diff --git a/queue_test.go b/queue_test.go index 2b047f5..c86849e 100644 --- a/queue_test.go +++ b/queue_test.go @@ -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")