Correct spelling of nonexistent.
This commit is contained in:
parent
b686bbacf5
commit
64568826f1
2 changed files with 6 additions and 6 deletions
4
db.go
4
db.go
|
@ -14,8 +14,8 @@ var (
|
|||
PrevShaMissing = errors.New("Previous sha missing from database")
|
||||
TxShaMissing = errors.New("Requested Tx does not exist")
|
||||
DuplicateSha = errors.New("Duplicate insert attempted")
|
||||
DbDoesNotExist = errors.New("Non-existant database")
|
||||
DbUnknownType = errors.New("Non-existant database type")
|
||||
DbDoesNotExist = errors.New("Non-existent database")
|
||||
DbUnknownType = errors.New("Non-existent database type")
|
||||
)
|
||||
|
||||
// AllShas is a special value that can be used as the final sha when requesting
|
||||
|
|
|
@ -167,9 +167,9 @@ func testFetch(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash,
|
|||
{midBlockID, endBlockID, shas[midBlockID-1 : endBlockID-1],
|
||||
"fetch second half"},
|
||||
|
||||
// Nonexistant off the end.
|
||||
// Nonexistent off the end.
|
||||
{endBlockID, endBlockID * 2, []btcwire.ShaHash{},
|
||||
"fetch nonexistant"},
|
||||
"fetch nonexistent"},
|
||||
}
|
||||
|
||||
for _, test := range fetchIdxTests {
|
||||
|
@ -182,9 +182,9 @@ func testFetch(t *testing.T, db btcdb.Db, shas []btcwire.ShaHash,
|
|||
}
|
||||
}
|
||||
|
||||
// Try and fetch nonexistant sha.
|
||||
// Try and fetch nonexistent sha.
|
||||
if db.ExistsSha(&badSha) {
|
||||
t.Errorf("non existant sha exists (%s)!", sync)
|
||||
t.Errorf("nonexistent sha exists (%s)!", sync)
|
||||
}
|
||||
_, _, _, err := sqlite3.FetchSha(db, &badSha)
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in a new issue