Skip to content

Commit 184b18d

Browse files
🧪 [test] add tests for pickRandomEndpoint
Co-authored-by: sunnylqm <615282+sunnylqm@users.noreply.github.com>
1 parent 5d09416 commit 184b18d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export async function executeEndpointFallback<T>({
122122
throw new Error('No endpoints configured');
123123
}
124124

125-
const firstEndpoint = pickRandomEndpoint(candidates, random);
125+
const firstEndpoint = pickRandomEndpoint(candidates, random)!;
126126

127127
try {
128128
return {

0 commit comments

Comments
 (0)