Skip to content

Commit

Permalink
single job
Browse files Browse the repository at this point in the history
  • Loading branch information
conradludgate committed Sep 13, 2022
1 parent 15af2bb commit fc2261b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ jobs:
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}

- name: Run cargo test
run: cargo test --all-features --workspace
run: cargo test --all-features --workspace -j 1

- name: Run cargo check (all features)
run: cargo check --all-features --workspace
run: cargo check --all-features --workspace -j 1

- name: Run cargo check (no features)
run: cargo check --no-default-features --workspace
run: cargo check --no-default-features --workspace -j 1

- name: Run cargo check (sync)
run: cargo check --no-default-features --features sync --workspace
run: cargo check --no-default-features --features sync --workspace -j 1

- name: Run cargo check (server)
run: cargo check --no-default-features --features server --workspace
run: cargo check --no-default-features --features server --workspace -j 1

clippy:
runs-on: ubuntu-latest
Expand Down
10 changes: 5 additions & 5 deletions atuin-client/src/database/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ mod test {

#[test]
fn test_search_prefix() {
let mut db = Sqlite::new("sqlite::memory:").unwrap();
let mut db = Sqlite::new(":memory:").unwrap();
new_history_item(&mut db, "ls /home/ellie").unwrap();

assert_search_eq(&db, SearchMode::Prefix, FilterMode::Global, "ls", 1).unwrap();
Expand All @@ -451,7 +451,7 @@ mod test {

#[test]
fn test_search_fulltext() {
let mut db = Sqlite::new("sqlite::memory:").unwrap();
let mut db = Sqlite::new(":memory:").unwrap();
new_history_item(&mut db, "ls /home/ellie").unwrap();

assert_search_eq(&db, SearchMode::FullText, FilterMode::Global, "ls", 1).unwrap();
Expand All @@ -461,7 +461,7 @@ mod test {

#[test]
fn test_search_fuzzy() {
let mut db = Sqlite::new("sqlite::memory:").unwrap();
let mut db = Sqlite::new(":memory:").unwrap();
new_history_item(&mut db, "ls /home/ellie").unwrap();
new_history_item(&mut db, "ls /home/frank").unwrap();
new_history_item(&mut db, "cd /home/Ellie").unwrap();
Expand Down Expand Up @@ -511,7 +511,7 @@ mod test {

#[test]
fn test_search_reordered_fuzzy() {
let mut db = Sqlite::new("sqlite::memory:").unwrap();
let mut db = Sqlite::new(":memory:").unwrap();
new_history_item(&mut db, "curl").unwrap();
new_history_item(&mut db, "corburl").unwrap();

Expand All @@ -533,7 +533,7 @@ mod test {
session: "beepboopiamasession".to_string(),
cwd: "/home/ellie".to_string(),
};
let mut db = Sqlite::new("sqlite::memory:").unwrap();
let mut db = Sqlite::new(":memory:").unwrap();
for _i in 1..10000 {
new_history_item(&mut db, "i am a duplicated command").unwrap();
}
Expand Down

0 comments on commit fc2261b

Please sign in to comment.