Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhunge committed Apr 13, 2023
1 parent e1285ed commit ee619a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/metrics/real_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,29 +542,29 @@ func TestExtensionPodStatsToKubeletsPodStats(t *testing.T) {
assertions func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats)
}{
{
description: "Acutal and Expected Pod Reference Metadata should match",
description: "Actual and Expected Pod Reference Metadata should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.PodRef.Name, kubeletPodStats.PodRef.Name)
assert.DeepEqual(t, expectedKubeletPodStats.PodRef.Namespace, kubeletPodStats.PodRef.Namespace)
assert.DeepEqual(t, expectedKubeletPodStats.PodRef.UID, kubeletPodStats.PodRef.UID)
},
},
{
description: "Acutal and Expected Start Time should match",
description: "Actual and Expected Start Time should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.StartTime, kubeletPodStats.StartTime)
},
},
{
description: "Acutal and Expected CPU Stats should match",
description: "Actual and Expected CPU Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.CPU.Time, kubeletPodStats.CPU.Time)
assert.DeepEqual(t, expectedKubeletPodStats.CPU.UsageCoreNanoSeconds, kubeletPodStats.CPU.UsageCoreNanoSeconds)
assert.DeepEqual(t, expectedKubeletPodStats.CPU.UsageNanoCores, kubeletPodStats.CPU.UsageNanoCores)
},
},
{
description: "Acutal and Expected Memory Stats should match",
description: "Actual and Expected Memory Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.Memory.Time, kubeletPodStats.Memory.Time)
assert.DeepEqual(t, expectedKubeletPodStats.Memory.UsageBytes, kubeletPodStats.Memory.UsageBytes)
Expand All @@ -573,7 +573,7 @@ func TestExtensionPodStatsToKubeletsPodStats(t *testing.T) {
},
},
{
description: "Acutal and Expected Network Interface Stats should match",
description: "Actual and Expected Network Interface Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.Network.InterfaceStats.Name, kubeletPodStats.Network.InterfaceStats.Name)
assert.DeepEqual(t, expectedKubeletPodStats.Network.InterfaceStats.RxBytes, kubeletPodStats.Network.InterfaceStats.RxBytes)
Expand All @@ -583,7 +583,7 @@ func TestExtensionPodStatsToKubeletsPodStats(t *testing.T) {
},
},
{
description: "Acutal and Expected Network Interfaces array Stats should match",
description: "Actual and Expected Network Interfaces array Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.Network.Interfaces[0].Name, kubeletPodStats.Network.Interfaces[0].Name)
assert.DeepEqual(t, expectedKubeletPodStats.Network.Interfaces[0].RxBytes, kubeletPodStats.Network.Interfaces[0].RxBytes)
Expand All @@ -598,7 +598,7 @@ func TestExtensionPodStatsToKubeletsPodStats(t *testing.T) {
},
},
{
description: "Acutal and Expected Containers array CPU Stats should match",
description: "Actual and Expected Containers array CPU Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.Containers[0].CPU.Time, kubeletPodStats.Containers[0].CPU.Time)
assert.DeepEqual(t, expectedKubeletPodStats.Containers[0].CPU.UsageCoreNanoSeconds, kubeletPodStats.Containers[0].CPU.UsageCoreNanoSeconds)
Expand All @@ -609,7 +609,7 @@ func TestExtensionPodStatsToKubeletsPodStats(t *testing.T) {
},
},
{
description: "Acutal and Expected Containers array Memory Stats should match",
description: "Actual and Expected Containers array Memory Stats should match",
assertions: func(expectedKubeletPodStats *stats.PodStats, kubeletPodStats *stats.PodStats) {
assert.DeepEqual(t, expectedKubeletPodStats.Containers[0].Memory.Time, kubeletPodStats.Containers[0].Memory.Time)
assert.DeepEqual(t, expectedKubeletPodStats.Containers[0].Memory.UsageBytes, kubeletPodStats.Containers[0].Memory.UsageBytes)
Expand Down

0 comments on commit ee619a0

Please sign in to comment.