gouring/uring_test.go

16 lines
228 B
Go
Raw Normal View History

package gouring
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestRingSetup(t *testing.T) {
h, err := New(256, 0)
assert.NoError(t, err)
assert.NotNil(t, h)
assert.NotEqual(t, 0, h.RingFd)
h.Close()
}