Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Add function to capabilities test
Browse files Browse the repository at this point in the history
Add function that tests multiqueue functions in types/capabilities.go.

Fixes #2844

Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
  • Loading branch information
cmaf committed Jul 27, 2020
1 parent dae0786 commit 18fbde9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions virtcontainers/types/capabilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,12 @@ func TestFsSharingCapability(t *testing.T) {
caps.SetFsSharingSupport()
assert.True(t, caps.IsFsSharingSupported())
}

func TestMultiQueueCapability(t *testing.T) {
assert := assert.New(t)
var caps Capabilities

assert.False(caps.IsMultiQueueSupported())
caps.SetMultiQueueSupport()
assert.True(caps.IsMultiQueueSupported())
}

0 comments on commit 18fbde9

Please sign in to comment.