mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 04:16:26 +00:00
More queue unit testing
This commit is contained in:
@@ -253,6 +253,9 @@ func Test_NewQueueWriteNilSingleChan(t *testing.T) {
|
||||
if req.Statements != nil {
|
||||
t.Fatalf("statements slice is not nil")
|
||||
}
|
||||
if len(req.flushChans) != 1 && req.flushChans[0] != fc {
|
||||
t.Fatalf("flush chans is not correct")
|
||||
}
|
||||
req.Close()
|
||||
case <-time.NewTimer(5 * time.Second).C:
|
||||
t.Fatalf("timed out waiting for statement")
|
||||
|
||||
Reference in New Issue
Block a user