Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Commit

Permalink
Issue #143 Check the DELETED event on Watch Builds
Browse files Browse the repository at this point in the history
Added test
  • Loading branch information
kishansagathiya committed Sep 27, 2018
1 parent e5503d4 commit c512989
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/openshift/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func Test_handle_build(t *testing.T) {

err := controller.HandleBuild(obj)
assert.NoError(t, err)

obj.Type = "DELETED"
err = controller.HandleBuild(obj)
assert.NoError(t, err)
}

func TestHandleBuildChannelLength(t *testing.T) {
Expand Down

0 comments on commit c512989

Please sign in to comment.