Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Remove queue overrides / limit concurrency #433

Merged
merged 2 commits into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Run tests with various configurations:

TEST_COMMAND="cargo test --all --all-features --all-targets"
TEST_COMMAND="cargo test --all --all-features --all-targets -- --test-threads=1"
jaymell marked this conversation as resolved.
Show resolved Hide resolved

# Common variables:
export DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres"
Expand Down
7 changes: 1 addition & 6 deletions server/svix-server/tests/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,7 @@ pub fn get_default_test_config() -> ConfigurationInner {
let _ = dotenv::dotenv();
let cfg = svix_server::cfg::load().unwrap();

// Change the queue type to in-memory. This is necessary so test workers don't pick up messages
// from other tests whose threads then abort at the end of a test before associated database
// transactions are complete.
let mut cfg = cfg.as_ref().clone();
cfg.queue_type = svix_server::cfg::QueueType::Memory;
cfg
cfg.as_ref().clone()
}

pub fn start_svix_server() -> (TestClient, tokio::task::JoinHandle<()>) {
Expand Down