Skip to content

Commit 4b80523

Browse files
committed
feat: assert default endpoint is not nil
1 parent f657945 commit 4b80523

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llm/binding_smoke_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ func TestDeepcodeLLMBinding_Explain_Smoke(t *testing.T) {
2222
)
2323
outputChain := make(chan string)
2424
endpoint, errEndpoint := url.Parse(defaultEndpointURL)
25-
if errEndpoint != nil {
26-
// time to panic, as our default should never be invalid
27-
panic(errEndpoint)
28-
}
25+
assert.NoError(t, errEndpoint)
2926

3027
err := binding.Explain(context.Background(), AIRequest{Id: uuid.New().String(), Input: "{}", Endpoint: endpoint}, HTML, outputChain)
3128
assert.NoError(t, err)

0 commit comments

Comments
 (0)