Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
attemps to fix ES tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Oct 27, 2023
1 parent 5416017 commit 5c89762
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
uses: taiki-e/install-action@cargo-llvm-cov

- uses: actions-rs/cargo@v1
env:
TEST_CONTAINER: 'false'
MIMIR__ELASTICSEARCH__URL: 'http://es1:9200'
with:
command: llvm-cov
args: --workspace --lcov --output-path lcov.info
Expand Down
5 changes: 1 addition & 4 deletions crates/tests/test-containers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ pub struct ElasticSearchContainer {

impl ElasticSearchContainer {
pub async fn start_and_build_client() -> anyhow::Result<ElasticSearchClient> {
let config = ElasticsearchStorageConfig::get(&[
"url='http://localhost:9200'".to_string(),
"timeout=10000".to_string(),
])?;
let config = ElasticsearchStorageConfig::get(&["timeout=10000".to_string()])?;

let client = if std::env::var("TEST_CONTAINER") != Ok("false".to_string()) {
let container = Self {
Expand Down

0 comments on commit 5c89762

Please sign in to comment.