Skip to content

Commit 26710dc

Browse files
committed
fix for issue # 123
1 parent e568f6c commit 26710dc

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

controllers/sandbox_controller_test.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ func TestComputeReadyCondition(t *testing.T) {
5757
r := &SandboxReconciler{}
5858

5959
testCases := []struct {
60-
name string
61-
sandbox *sandboxv1alpha1.Sandbox
62-
err error
63-
svc *corev1.Service
64-
pod *corev1.Pod
65-
expectedStatus metav1.ConditionStatus
66-
expectedReason string
60+
name string
61+
sandbox *sandboxv1alpha1.Sandbox
62+
err error
63+
svc *corev1.Service
64+
pod *corev1.Pod
65+
beforeReady *metav1.Condition
66+
expectedStatus metav1.ConditionStatus
67+
expectedReason string
68+
expectMetric bool
69+
expectedMetricDiff float64
6770
}{
6871
{
6972
name: "all ready",

0 commit comments

Comments
 (0)