Skip to content

Commit

Permalink
Skip deploy annotation check for faasd
Browse files Browse the repository at this point in the history
Signed-off-by: Nitishkumar Singh <[email protected]>
  • Loading branch information
nitishkumar71 committed Sep 30, 2021
1 parent bede660 commit cf8df23
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ func compareDeployAndStatus(deploy types.FunctionDeployment, status types.Functi
if err != nil {
return err
}
}

// some systems add additional annotations, we remove those
if deploy.Annotations != nil && len(*deploy.Annotations) > 0 {
if status.Annotations == nil {
return fmt.Errorf("got nil Annotations, expected %d", len(*deploy.Annotations))
// some systems add additional annotations, we remove those
if deploy.Annotations != nil && len(*deploy.Annotations) > 0 {
if status.Annotations == nil {
return fmt.Errorf("got nil Annotations, expected %d", len(*deploy.Annotations))
}
return strMapEqual("Annotations", *status.Annotations, *deploy.Annotations)
}
return strMapEqual("Annotations", *status.Annotations, *deploy.Annotations)
}

return nil
Expand Down

0 comments on commit cf8df23

Please sign in to comment.