mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-05 08:46:56 +08:00
add unittests and bug fix
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"github.com/hdt3213/godis/tcp"
|
||||
"net"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestListenAndServe(t *testing.T) {
|
||||
@@ -39,4 +40,5 @@ func TestListenAndServe(t *testing.T) {
|
||||
return
|
||||
}
|
||||
closeChan <- struct{}{}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
|
Reference in New Issue
Block a user