mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-13 05:36:13 +00:00
virtcontainers: Fixed static checks for improved test coverage for fc.go
Expanded tests on fc_test.go to cover more lines of code. Coverage went from 4.6% to 18.5%. Fixed very simple static check fail on line 202. Fixes: #266 Signed-off-by: Eduardo Berrocal <eduardo.berrocal@intel.com>
This commit is contained in:
parent
03a8cd69c2
commit
a4c0303d89
@ -199,8 +199,7 @@ func TestFCGetTotalMemoryMB(t *testing.T) {
|
|||||||
fc := firecracker{}
|
fc := firecracker{}
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
var initialMemSize uint32
|
var initialMemSize uint32 = 1024
|
||||||
initialMemSize = 1024
|
|
||||||
|
|
||||||
fc.config.MemorySize = 1024
|
fc.config.MemorySize = 1024
|
||||||
memSize := fc.GetTotalMemoryMB(ctx)
|
memSize := fc.GetTotalMemoryMB(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user