mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-30 16:12:39 -06:00
Fix existant typo
This commit is contained in:
@@ -154,10 +154,10 @@ func testGarbageCollection(t *testing.T, test gcTest) {
|
||||
// In September 2023, we found a failure to handle the `hasCache` in
|
||||
// `*NomsBlockStore` appropriately while cleaning up a memtable into which
|
||||
// dangling references had been written could result in writing chunks to a
|
||||
// database which referenced non-existant chunks.
|
||||
// database which referenced non-existent chunks.
|
||||
//
|
||||
// The general pattern was to get new chunk addresses into the hasCache, but
|
||||
// not written to the store, and then to have an incoming chunk add a refenece
|
||||
// not written to the store, and then to have an incoming chunk add a reference
|
||||
// to missing chunk. At that time, we would clear the memtable, since it had
|
||||
// invalid chunks in it, but we wouldn't purge the hasCache. Later writes which
|
||||
// attempted to reference the chunks which had made it into the hasCache would
|
||||
|
||||
@@ -48,7 +48,7 @@ func TestStrSet(t *testing.T) {
|
||||
t.Error("Set doesn't match expectation after removes", strSet.AsSlice())
|
||||
}
|
||||
|
||||
strSet.Remove("non-existant string")
|
||||
strSet.Remove("non-existent string")
|
||||
|
||||
if !isAsExpected(strSet, []string{"a", "c", "e"}) {
|
||||
t.Error("Set doesn't match expectation after noop remove", strSet.AsSlice())
|
||||
|
||||
@@ -94,7 +94,7 @@ type AppliedEditStats struct {
|
||||
// Deletions counts the number of items deleted from the map
|
||||
Deletions int64
|
||||
|
||||
// NonexistantDeletes counts the number of items where a deletion was attempted, but the key didn't exist in the map
|
||||
// NonexistentDeletes counts the number of items where a deletion was attempted, but the key didn't exist in the map
|
||||
// so there was no impact
|
||||
NonExistentDeletes int64
|
||||
}
|
||||
|
||||
@@ -680,7 +680,7 @@ DELIM
|
||||
[[ "$output" =~ "PRIMARY KEY (\`pk\`)" ]] || false
|
||||
}
|
||||
|
||||
@test "1pk5col-ints: dolt schema show on non existant table" {
|
||||
@test "1pk5col-ints: dolt schema show on non existent table" {
|
||||
run dolt schema show foo
|
||||
[ "$status" -eq 0 ]
|
||||
[ "$output" = "foo not found" ]
|
||||
|
||||
@@ -9,7 +9,7 @@ teardown() {
|
||||
teardown_common
|
||||
}
|
||||
|
||||
@test "conflict-detection: merge non-existant branch errors" {
|
||||
@test "conflict-detection: merge non-existent branch errors" {
|
||||
run dolt merge batmans-parents
|
||||
[ $status -eq 1 ]
|
||||
[[ "$output" =~ "branch not found" ]] || false
|
||||
|
||||
@@ -139,7 +139,7 @@ SQL
|
||||
[[ "${lines[3]}" =~ ' 4 ' ]] || false
|
||||
}
|
||||
|
||||
@test "create-views: cannot create view referencing non-existant table" {
|
||||
@test "create-views: cannot create view referencing non-existent table" {
|
||||
run dolt sql <<SQL
|
||||
create view broken as select id from my_users;
|
||||
SQL
|
||||
|
||||
@@ -132,7 +132,7 @@ teardown() {
|
||||
[ "$output" = "Already on branch 'main'" ]
|
||||
}
|
||||
|
||||
@test "empty-repo: dolt checkout non-existant branch" {
|
||||
@test "empty-repo: dolt checkout non-existent branch" {
|
||||
run dolt checkout foo
|
||||
[ "$status" -ne 0 ]
|
||||
[ "$output" = "error: could not find foo" ]
|
||||
|
||||
@@ -227,7 +227,7 @@ CSV
|
||||
[[ "$output" =~ "reserved" ]] || false
|
||||
}
|
||||
|
||||
@test "import-create-tables: try to table import with nonexistant --pk arg" {
|
||||
@test "import-create-tables: try to table import with nonexistent --pk arg" {
|
||||
run dolt table import -c -pk="batmansparents" test 1pk5col-ints.csv
|
||||
[ "$status" -eq 1 ]
|
||||
[[ "$output" =~ "Error determining the output schema." ]] || false
|
||||
@@ -235,7 +235,7 @@ CSV
|
||||
[[ "$output" =~ "column 'batmansparents' not found" ]] || false
|
||||
}
|
||||
|
||||
@test "import-create-tables: try to table import with one valid and one nonexistant --pk arg" {
|
||||
@test "import-create-tables: try to table import with one valid and one nonexistent --pk arg" {
|
||||
run dolt table import -c -pk="pk,batmansparents" test 1pk5col-ints.csv
|
||||
[ "$status" -eq 1 ]
|
||||
[[ "$output" =~ "Error determining the output schema." ]] || false
|
||||
|
||||
@@ -26,14 +26,14 @@ skip_if_no_aws_tests() {
|
||||
dolt fetch origin
|
||||
}
|
||||
|
||||
@test "remotes-aws: fetch with non-existant dynamo table fails" {
|
||||
@test "remotes-aws: fetch with non-existent dynamo table fails" {
|
||||
skip_if_no_aws_tests
|
||||
dolt remote add origin 'aws://['"this_dynamodb_table_does_not_exist_b612c34f055f4b458"':'"$DOLT_BATS_AWS_BUCKET"']/'"$DOLT_BATS_AWS_EXISTING_REPO"
|
||||
run dolt fetch origin
|
||||
[ "$status" -eq 1 ]
|
||||
}
|
||||
|
||||
@test "remotes-aws: fetch with non-existant s3 bucket fails" {
|
||||
@test "remotes-aws: fetch with non-existent s3 bucket fails" {
|
||||
skip_if_no_aws_tests
|
||||
dolt remote add origin 'aws://['"$DOLT_BATS_AWS_TABLE"':'"this_s3_bucket_does_not_exist_5883eaaa20a4797bb"']/'"$DOLT_BATS_AWS_EXISTING_REPO"
|
||||
run dolt fetch origin
|
||||
|
||||
@@ -11,7 +11,7 @@ tests:
|
||||
args: ["--config", "server.yaml"]
|
||||
error_matches:
|
||||
- "require_secure_transport can only be `true` when a tls_key and tls_cert are provided."
|
||||
- name: tls_key non-existant
|
||||
- name: tls_key non-existent
|
||||
repos:
|
||||
- name: repo1
|
||||
with_files:
|
||||
@@ -28,7 +28,7 @@ tests:
|
||||
args: ["--config", "server.yaml"]
|
||||
error_matches:
|
||||
- "no such file or directory"
|
||||
- name: tls_cert non-existant
|
||||
- name: tls_cert non-existent
|
||||
repos:
|
||||
- name: repo1
|
||||
with_files:
|
||||
|
||||
Reference in New Issue
Block a user