Skip to content

Commit

Permalink
remove status
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
  • Loading branch information
somtochiama committed Aug 10, 2022
1 parent 55f3c6b commit 472858f
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions internal/server/receiver_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ func Test_validate(t *testing.T) {
header string
}

status := v1beta1.ReceiverStatus{
Conditions: []metav1.Condition{
{
Type: meta.ReadyCondition,
Status: metav1.ConditionTrue,
},
},
URL: "/hook/digest",
ObservedGeneration: 1,
}

tests := []struct {
name string
hashOpts hashOpts
Expand Down Expand Up @@ -286,7 +275,6 @@ func Test_validate(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tt.receiver.Status = status

builder := fake.NewClientBuilder()
builder.WithScheme(scheme)
Expand All @@ -306,7 +294,7 @@ func Test_validate(t *testing.T) {
if err != nil {
t.Errorf("error marshalling test payload: '%s'", err)
}
req := httptest.NewRequest("POST", tt.receiver.Status.URL, bytes.NewBuffer(data))
req := httptest.NewRequest("POST", "/", bytes.NewBuffer(data))
for key, val := range tt.headers {
req.Header.Set(key, val)
}
Expand Down

0 comments on commit 472858f

Please sign in to comment.