Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Josef Karasek <josef@kedify.io>
  • Loading branch information
josefkarasek committed Jun 10, 2024
1 parent 8cdeef3 commit eb73bba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion controllers/keda/scaledjob_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ func (r *ScaledJobReconciler) checkIfPaused(ctx context.Context, logger logr.Log
shouldPause = true
}
}

if shouldPause {
if !pausedStatus {
logger.Info("ScaledJob is paused, stopping scaling loop.")
Expand Down
7 changes: 5 additions & 2 deletions pkg/scaling/executor/scale_jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,11 @@ func TestCreateJobs(t *testing.T) {

func TestGenerateJobs(t *testing.T) {
var (
expectedAnnotations = map[string]string{"test": "test"}
expectedLabels = map[string]string{
expectedAnnotations = map[string]string{
"test": "test",
"scaledjob.keda.sh/generation": "0",
}
expectedLabels = map[string]string{
"app.kubernetes.io/managed-by": "keda-operator",
"app.kubernetes.io/name": "test",
"app.kubernetes.io/part-of": "test",
Expand Down

0 comments on commit eb73bba

Please sign in to comment.