Skip to content

Commit eb02373

Browse files
committed
log less, fix embd test
1 parent e34c9d7 commit eb02373

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ jobs:
180180
run: |
181181
cd examples/server/tests
182182
$env:PYTHONIOENCODING = ":replace"
183-
pytest -v -s -x
183+
pytest -v -x
184184
185185
- name: Slow tests
186186
id: server_integration_tests_slow
187187
if: ${{ (github.event.schedule || github.event.inputs.slow_tests == 'true') && matrix.build_type == 'Release' }}
188188
run: |
189189
cd examples/server/tests
190190
$env:SLOW_TESTS = "1"
191-
pytest -v -s -x
191+
pytest -v -x

examples/server/tests/tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44

55
if [ $# -lt 1 ]
66
then
7-
pytest -v -s -x
7+
pytest -v -x
88
else
99
pytest "$@"
1010
fi

examples/server/tests/unit/test_embedding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_embedding_single():
2323
assert len(res.body['data'][0]['embedding']) > 1
2424

2525
# make sure embedding vector is normalized
26-
assert abs(sum([x ** 2 for x in res.body['data'][0]['embedding']]) - 1) < 1e-6
26+
assert abs(sum([x ** 2 for x in res.body['data'][0]['embedding']]) - 1) < 1e-5
2727

2828

2929
def test_embedding_multiple():
@@ -95,4 +95,4 @@ def test_same_prompt_give_same_result():
9595
v0 = res.body['data'][0]['embedding']
9696
vi = res.body['data'][i]['embedding']
9797
for x, y in zip(v0, vi):
98-
assert abs(x - y) < 1e-6
98+
assert abs(x - y) < 1e-5

0 commit comments

Comments
 (0)