Skip to content

Commit

Permalink
[TST] Make test_sanity skip if not cluster (#2299)
Browse files Browse the repository at this point in the history
## Description of changes

*Summarize the changes made by this PR.*
 - Improvements & Bug fixes
	 - Make test_sanity skip if not cluster
 - New functionality
	 - None

## Test plan
*How are these changes tested?*
These are tests
- [x] Tests pass locally with `pytest` for python, `yarn test` for js,
`cargo test` for rust

## Documentation Changes
None
  • Loading branch information
HammadB authored Jun 12, 2024
1 parent 30b36c4 commit 7fef986
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chromadb/test/distributed/test_sanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
import time

from chromadb.api.types import QueryResult
from chromadb.test.conftest import COMPACTION_SLEEP, MEMBERLIST_SLEEP
from chromadb.test.conftest import (
COMPACTION_SLEEP,
MEMBERLIST_SLEEP,
skip_if_not_cluster,
)

EPS = 1e-6


@skip_if_not_cluster()
def test_add(
api: ServerAPI,
) -> None:
Expand Down Expand Up @@ -63,6 +68,7 @@ def test_add(
assert abs(ground_truth_distances[i] - retrieved_distances[i]) < EPS


@skip_if_not_cluster()
def test_add_include_all_with_compaction_delay(api: ServerAPI) -> None:
api.reset()

Expand Down

0 comments on commit 7fef986

Please sign in to comment.