Skip to content

Commit

Permalink
adjust test cases to run for windows
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
  • Loading branch information
dims committed Mar 1, 2024
1 parent 579d8b4 commit 39db3f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions pkg/cri/sbserver/sandbox_stats_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
},
expectError: false,
},
{
desc: "pod sandbox with a container that has no cpu shouldn't error",
"pod sandbox with a container that has no cpu shouldn't error": {
metrics: map[string]*wstats.Statistics{
"c1": {},
"s1": {},
Expand All @@ -323,8 +322,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
expectedContainerStats: []expectedStats{},
expectError: false,
},
{
desc: "pod sandbox with no stats in metric mapp will fail",
"pod sandbox with no stats in metric mapp will fail": {
metrics: map[string]*wstats.Statistics{},
sandbox: sandboxPod("s1", initialStatsTimestamp, 200),
containers: []containerstore.Container{},
Expand Down
6 changes: 2 additions & 4 deletions pkg/cri/server/sandbox_stats_windows_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
},
expectError: false,
},
{
desc: "pod sandbox with a container that has no cpu shouldn't error",
"pod sandbox with a container that has no cpu shouldn't error": {
metrics: map[string]*wstats.Statistics{
"c1": {},
"s1": {},
Expand All @@ -323,8 +322,7 @@ func Test_criService_podSandboxStats(t *testing.T) {
expectedContainerStats: []expectedStats{},
expectError: false,
},
{
desc: "pod sandbox with no stats in metric mapp will fail",
"pod sandbox with no stats in metric mapp will fail": {
metrics: map[string]*wstats.Statistics{},
sandbox: sandboxPod("s1", initialStatsTimestamp, 200),
containers: []containerstore.Container{},
Expand Down

0 comments on commit 39db3f1

Please sign in to comment.