Skip to content

Commit 77024c7

Browse files
committed
Add unit tests for request body
1 parent fcc284d commit 77024c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/epp/handlers/request_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func TestHandleRequestBody(t *testing.T) {
7474
fakeClient := fake.NewClientBuilder().
7575
WithScheme(scheme).
7676
Build()
77-
ds.PoolSet(ctx, fakeClient, pool)
77+
if err := ds.PoolSet(ctx, fakeClient, pool); err != nil {
78+
t.Error(err, "Error while setting inference pool")
79+
}
7880
ds.PodUpdateOrAddIfNotExist(pod)
7981

8082
tests := []struct {

0 commit comments

Comments
 (0)