From 2d594c98cf8def077169bf2ca7b254d22aa874d5 Mon Sep 17 00:00:00 2001 From: Christophe de Carvalho Date: Tue, 10 Nov 2020 16:16:35 +0100 Subject: [PATCH] fix test TestContainer_GetRSU --- models/generated/workloads/container_test.go | 22 ++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/models/generated/workloads/container_test.go b/models/generated/workloads/container_test.go index 88567602..71cb51a9 100644 --- a/models/generated/workloads/container_test.go +++ b/models/generated/workloads/container_test.go @@ -22,7 +22,7 @@ func TestContainer_GetRSU(t *testing.T) { rsu: RSU{ CRU: 1, MRU: 1, - SRU: 0.25, + SRU: 0, }, }, { @@ -35,7 +35,7 @@ func TestContainer_GetRSU(t *testing.T) { rsu: RSU{ CRU: 1, MRU: 1, - SRU: 1, + SRU: 0, }, }, { @@ -49,7 +49,7 @@ func TestContainer_GetRSU(t *testing.T) { CRU: 4, MRU: 2, SRU: 0, - HRU: 10, + HRU: 0, }, }, { @@ -63,7 +63,21 @@ func TestContainer_GetRSU(t *testing.T) { CRU: 1, MRU: 0.1953, SRU: 0, - HRU: 9.7656, + HRU: 0, + }, + }, + { + capcity: ContainerCapacity{ + Cpu: 1, + Memory: 200, + DiskSize: 52224, + DiskType: DiskTypeSSD, + }, + rsu: RSU{ + CRU: 1, + MRU: 0.1953, + SRU: 1, + HRU: 0, }, }, }