mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-14 14:14:15 +00:00
Merge pull request #429 from cmaf/unit-virtcontainers-cap
virtcontainers: Add function to capabilities test
This commit is contained in:
commit
31d601b772
@ -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