1
0
Fork 0

140 Commits (2db982f8e86e40b9c445e865686d3e53675a0899)

Author SHA1 Message Date
Philip O'Toole a087d509ac Upload Provider uses Snapshot-locking backup 9 months ago
Philip O'Toole 5c5b226303 Working 9 months ago
Philip O'Toole 4d605ac9eb Store WAL path in store, to avoid races
https://app.circleci.com/pipelines/github/rqlite/rqlite/3966/workflows/a460ab69-2827-4a72-9a79-1aceda68ee7d/jobs/31288
9 months ago
Philip O'Toole ad916270d2 Bring go mod import path into compliance 9 months ago
Philip O'Toole fc7b9901f6 Add DB-level unit test of WAL removal on close 9 months ago
Philip O'Toole bf1b6ea5de Open a non-existent database file should work 9 months ago
Philip O'Toole 62dcb881fc More DB and Checkpoint tests 10 months ago
Philip O'Toole 817998396f Add VACUUM to database code 10 months ago
Philip O'Toole ffe9688dcd Still just setting pragmas on RW conn 1 year ago
Philip O'Toole c737e73eb2 Fix up test 1 year ago
Philip O'Toole fbbe282670 Test that databases open with checkpoint disabled 1 year ago
Philip O'Toole cb989d09a2 Some changes from PR v2 1 year ago
Philip O'Toole 1a24557c19 Merge remote-tracking branch 'origin' into wal-snapshot-store-v3 1 year ago
Philip O'Toole 208fc20659 Fix more uses of random 1 year ago
Philip O'Toole c44d020c11 Only attempt to checkpoint once 1 year ago
Philip O'Toole 0589233362 More Windows-triggered fixes 1 year ago
Philip O'Toole eed11dee8c Comment 1 year ago
Philip O'Toole d4aab33163 More testing of DB checkpointing 1 year ago
Philip O'Toole 8d6d31649f ABL 1 year ago
Philip O'Toole cacc03199e Add DB WAL Path and test 1 year ago
Philip O'Toole 13fce2fac2 Remove in-memory support from DB layer 1 year ago
Philip O'Toole b57011336f DB can run an integrity check 1 year ago
Philip O'Toole 61b2e10b2e Fix db-level unit tests 1 year ago
Philip O'Toole a9796eeb36 Better testing 1 year ago
Philip O'Toole 3f462eecfa Remove all on-disk SQLite files on startup 1 year ago
Philip O'Toole 7e1b8d12d7 Add full WAL support to DB layer 1 year ago
Philip O'Toole d8f3a72365 Common DB-layer tests 1 year ago
Philip O'Toole ca6f071fb5 Split up DB-level unit testing 1 year ago
Philip O'Toole 9924fe75f5 Some small improvements 1 year ago
Philip O'Toole 3058d3e9fc Fix transaction handling in db.Request() 1 year ago
Philip O'Toole 59786e818b Initial unit tests for db.Requests()
Seems to work well.
1 year ago
Philip O'Toole 014559bb06 Another DB read-only test 1 year ago
Philip O'Toole f84b258f99 Better variable name 1 year ago
Philip O'Toole c3e7044945 Final read-only test 1 year ago
Philip O'Toole 8f45c4c8c9 Factor out read-only check 1 year ago
Philip O'Toole 92a604c4ec Move SQLite validity checks to db module 1 year ago
Philip O'Toole c1ba9157c2 More unit test of nil parameters 2 years ago
Philip O'Toole 41bf265b02 Fix more handling of nil named values 2 years ago
Philip O'Toole 053bde0ed6 Upgrade to latest SQLite driver 2 years ago
Philip O'Toole 3d555a73cb Add unit test showing malformed database issue
https://github.com/rqlite/rqlite/issues/1103
2 years ago
Philip O'Toole e74bfc182a Use new Encoder everywhere 2 years ago
Philip O'Toole 0071867e34 Don't call t.Fatal() from goroutine
It wouldn't abort the test anyway, so just log.
2 years ago
Eng Zer Jun 5141eff5fc
test: use `T.TempDir` to create temporary test directory
This commit replaces `ioutil.TempDir` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `ioutil.TempDir`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2 years ago
Philip O'Toole c91ca45ba4 Expose more DB attributes 2 years ago
Philip O'Toole a6a3567a4d DB layer returns in-memory status 2 years ago
Philip O'Toole d84fb85f01 Don't HTML escape JSON output 3 years ago
Philip O'Toole 869f3547b7 Update to SQLite 3.38 3 years ago
Philip O'Toole 7038b86dcb One final named params unit test 3 years ago
Philip O'Toole 01849e77d5 Add db-level support for named paremeters 3 years ago
Philip O'Toole 239cdc04b5 Don't run heavy memory tests in parallel
Let's see if this helps these tests run faster, especially with -race,
and prevent CircleCI timeouts.
3 years ago