Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian J <[email protected]>
  • Loading branch information
derjust committed Nov 19, 2021
1 parent 5f7436e commit 7b26322
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rollout/trafficrouting/alb/alb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ func TestGetForwardActionStringMarshalsZeroCorrectly(t *testing.T) {

func TestGetForwardActionStringMarshalsDisabledStickyConfigCorrectly(t *testing.T) {
r := fakeRollout("stable", "canary", "ingress", 443)
stickinessConfig := v1alpha1.StickinessConfig {
Enabled: false,
DurationSeconds:0,
stickinessConfig := v1alpha1.StickinessConfig{
Enabled: false,
DurationSeconds: 0,
}
r.Spec.Strategy.Canary.TrafficRouting.ALB.StickinessConfig = &stickinessConfig
forwardAction, err := getForwardActionString(r, 443, 0)
Expand All @@ -337,9 +337,9 @@ func TestGetForwardActionStringMarshalsDisabledStickyConfigCorrectly(t *testing.

func TestGetForwardActionStringDetectsNegativeStickyConfigDuration(t *testing.T) {
r := fakeRollout("stable", "canary", "ingress", 443)
stickinessConfig := v1alpha1.StickinessConfig {
Enabled: true,
DurationSeconds:0,
stickinessConfig := v1alpha1.StickinessConfig{
Enabled: true,
DurationSeconds: 0,
}
r.Spec.Strategy.Canary.TrafficRouting.ALB.StickinessConfig = &stickinessConfig
forwardAction, err := getForwardActionString(r, 443, 0)
Expand All @@ -351,9 +351,9 @@ func TestGetForwardActionStringDetectsNegativeStickyConfigDuration(t *testing.T)

func TestGetForwardActionStringDetectsTooLargeStickyConfigDuration(t *testing.T) {
r := fakeRollout("stable", "canary", "ingress", 443)
stickinessConfig := v1alpha1.StickinessConfig {
Enabled: true,
DurationSeconds:604800 + 1,
stickinessConfig := v1alpha1.StickinessConfig{
Enabled: true,
DurationSeconds: 604800 + 1,
}
r.Spec.Strategy.Canary.TrafficRouting.ALB.StickinessConfig = &stickinessConfig
forwardAction, err := getForwardActionString(r, 443, 0)
Expand Down

0 comments on commit 7b26322

Please sign in to comment.