Skip to content

Commit

Permalink
Tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelgaczynski committed May 16, 2023
1 parent acad8d2 commit e87cd7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions conn_test.go
Expand Up @@ -123,7 +123,7 @@ func TestConnectionWriteTo(t *testing.T) {
Equal(t, int64(1024), nBytes)
}

func TestPeek(t *testing.T) {
func TestConnectionPeek(t *testing.T) {
conn := newConnection()
conn.setUserSpace()

Expand All @@ -142,7 +142,7 @@ func TestPeek(t *testing.T) {
Equal(t, data, buffer)
}

func TestDiscard(t *testing.T) {
func TestConnectionDiscard(t *testing.T) {
conn := newConnection()
conn.setUserSpace()

Expand All @@ -162,5 +162,5 @@ func TestDiscard(t *testing.T) {
buffer, err := conn.Peek(-1)
NoError(t, err)
Equal(t, 512, len(buffer))
Equal(t, data, buffer)
Equal(t, data[512:], buffer)
}
4 changes: 2 additions & 2 deletions iouring/prepare_test.go
Expand Up @@ -86,15 +86,15 @@ func TestPrepareCloseDirect(t *testing.T) {
Equal(t, uint8(19), entry.OpCode)
Equal(t, uint8(0), entry.Flags)
Equal(t, uint16(0), entry.IoPrio)
Equal(t, int32(10), entry.Fd)
Equal(t, int32(0), entry.Fd)
Equal(t, uint64(0), entry.Off)
Equal(t, uint64(0), entry.Addr)
Equal(t, uint32(0), entry.Len)
Equal(t, uint32(0), entry.OpcodeFlags)
Equal(t, uint64(0), entry.UserData)
Equal(t, uint16(0), entry.BufIG)
Equal(t, uint16(0), entry.Personality)
Equal(t, int32(0), entry.SpliceFdIn)
Equal(t, int32(11), entry.SpliceFdIn)
}

func TestPrepareReadv(t *testing.T) {
Expand Down

0 comments on commit e87cd7f

Please sign in to comment.