Skip to content

Commit 39db3f1

Browse files
committed
adjust test cases to run for windows
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 579d8b4 commit 39db3f1

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

pkg/cri/sbserver/sandbox_stats_windows_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
306306
},
307307
expectError: false,
308308
},
309-
{
310-
desc: "pod sandbox with a container that has no cpu shouldn't error",
309+
"pod sandbox with a container that has no cpu shouldn't error": {
311310
metrics: map[string]*wstats.Statistics{
312311
"c1": {},
313312
"s1": {},
@@ -323,8 +322,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
323322
expectedContainerStats: []expectedStats{},
324323
expectError: false,
325324
},
326-
{
327-
desc: "pod sandbox with no stats in metric mapp will fail",
325+
"pod sandbox with no stats in metric mapp will fail": {
328326
metrics: map[string]*wstats.Statistics{},
329327
sandbox: sandboxPod("s1", initialStatsTimestamp, 200),
330328
containers: []containerstore.Container{},

pkg/cri/server/sandbox_stats_windows_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
306306
},
307307
expectError: false,
308308
},
309-
{
310-
desc: "pod sandbox with a container that has no cpu shouldn't error",
309+
"pod sandbox with a container that has no cpu shouldn't error": {
311310
metrics: map[string]*wstats.Statistics{
312311
"c1": {},
313312
"s1": {},
@@ -323,8 +322,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
323322
expectedContainerStats: []expectedStats{},
324323
expectError: false,
325324
},
326-
{
327-
desc: "pod sandbox with no stats in metric mapp will fail",
325+
"pod sandbox with no stats in metric mapp will fail": {
328326
metrics: map[string]*wstats.Statistics{},
329327
sandbox: sandboxPod("s1", initialStatsTimestamp, 200),
330328
containers: []containerstore.Container{},

0 commit comments

Comments
 (0)