mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-02 02:02:24 +00:00
Runtime: Clarify mutability of global var
Was about to change `urandomdev` to a constant when I realized it's intentionally mutable so it can be mocked in tests. There's other comments to the same effect so clarify here as well. Fixes: #5965 Signed-off-by: Danny Canter <danny@dcantah.dev>
This commit is contained in:
parent
dc9c8d3357
commit
86ee24b33c
@ -19,6 +19,7 @@ import (
|
|||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Mutable and not constant so we can mock in tests
|
||||||
var urandomDev = "/dev/urandom"
|
var urandomDev = "/dev/urandom"
|
||||||
|
|
||||||
// VM is abstraction of a virtual machine.
|
// VM is abstraction of a virtual machine.
|
||||||
|
Loading…
Reference in New Issue
Block a user