Skip to content

Commit

Permalink
test case
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Sep 10, 2024
1 parent ca7dcbc commit 94abeed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/reconciler/vertex/scaling/scaling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func Test_desiredReplicasSinglePartition(t *testing.T) {
},
},
Status: dfv1.VertexStatus{
Replicas: uint32(2),
Replicas: uint32(2),
ReadyReplicas: uint32(2),
},
}
assert.Equal(t, int32(1), s.desiredReplicas(context.TODO(), src, []float64{0}, []int64{0}, []int64{10000}, []int64{5000}))
Expand All @@ -75,7 +76,8 @@ func Test_desiredReplicasSinglePartition(t *testing.T) {
},
},
Status: dfv1.VertexStatus{
Replicas: uint32(2),
Replicas: uint32(2),
ReadyReplicas: uint32(2),
},
}
assert.Equal(t, int32(1), s.desiredReplicas(context.TODO(), udf, []float64{0}, []int64{0}, []int64{10000}, []int64{5000}))
Expand All @@ -99,7 +101,8 @@ func Test_desiredReplicasMultiplePartitions(t *testing.T) {
},
},
Status: dfv1.VertexStatus{
Replicas: uint32(2),
Replicas: uint32(2),
ReadyReplicas: uint32(2),
},
}

Expand Down

0 comments on commit 94abeed

Please sign in to comment.