Skip to content

Commit

Permalink
tests: rewrite end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Jul 23, 2024
1 parent 31c8e1d commit 4a52394
Show file tree
Hide file tree
Showing 18 changed files with 950 additions and 1,074 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
path: target
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}}
- run: cargo build --tests
- run: cargo build --bins --tests
- run: cargo test
- run: cargo clippy --tests --no-deps -- -D warnings
- run: cargo fmt --check
182 changes: 0 additions & 182 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ uuid = { version = "1.8.0", features = ["serde", "v4"] }

[dev-dependencies]
escargot = "0.5.10"
goldenfile = "1.7.1"
goldenscript = "0.7.0"
hex = "0.4.3"
paste = "1.0.14"
serde_json = "1.0.117"
serial_test = "3.1.1"
tempfile = "3.10.1"
test-case = "3.3.1"
test_each_file = "0.3.2"
6 changes: 3 additions & 3 deletions src/sql/testscripts/transactions/anomaly_phantom_read
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A phantom read is when t1 reads entries matching some predicate, but a
# modification by t2 changes which entries match the predicate such that a later
# read by t1 returns them. Snapshot isolation prevents this.
# A phantom read is when c1 reads entries matching some predicate, but a
# modification by c2 changes which entries match the predicate such that a later
# read by c1 returns them. Snapshot isolation prevents this.

> CREATE TABLE test (id INT PRIMARY KEY, value STRING)
> INSERT INTO test VALUES (1, 'a'), (2, 'b'), (3, 'c')
Expand Down
3 changes: 0 additions & 3 deletions tests/README.md

This file was deleted.

Loading

0 comments on commit 4a52394

Please sign in to comment.