mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
virtcontainers: Add function to capabilities test
Add function that tests multiqueue functions in types/capabilities.go. Fixes #428 Signed-off-by: Chelsea Mafrica <chelsea.e.mafrica@intel.com>
This commit is contained in:
parent
2fef265701
commit
e1a79e6945
@ -34,3 +34,12 @@ func TestFsSharingCapability(t *testing.T) {
|
|||||||
caps.SetFsSharingSupport()
|
caps.SetFsSharingSupport()
|
||||||
assert.True(t, caps.IsFsSharingSupported())
|
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())
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user