Skip to content

Commit

Permalink
Force all GTP events to update only (#235)
Browse files Browse the repository at this point in the history
* Fixes: #234

force GTPs to update only

Signed-off-by: Shriram Sharma <[email protected]>

* fixed linting errors

Signed-off-by: Shriram Sharma <[email protected]>
Signed-off-by: sa <[email protected]>
  • Loading branch information
shriramsharma authored and sa committed Jul 21, 2022
1 parent 9b3b4c6 commit f627d99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admiral/pkg/clusters/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ func TestRolloutHandler(t *testing.T) {
}

func TestHandleEventForGlobalTrafficPolicy(t *testing.T) {
event := admiral.EventType("Add")
p := common.AdmiralParams{
KubeconfigPath: "testdata/fake.config",
}
Expand Down Expand Up @@ -253,7 +252,7 @@ func TestHandleEventForGlobalTrafficPolicy(t *testing.T) {

for _, c := range testcases {
t.Run(c.name, func(t *testing.T) {
err := HandleEventForGlobalTrafficPolicy(event, c.gtp, registry, "testcluster")
err := HandleEventForGlobalTrafficPolicy(c.gtp, registry, "testcluster")
assert.Equal(t, err != nil, c.doesError)
})
}
Expand Down

0 comments on commit f627d99

Please sign in to comment.