M. J. Fromberger
5970fb3cb8
Clarify the use of a global shared database handle.
...
Replace the global db pointer with a hook that test cases can call to access
the shared database. The result is still global, but the name is a little more
self-documenting, and the use of call syntax makes it clear where we are
accessing something with more than trivial structure.
2021-08-30 11:48:18 -07:00
M. J. Fromberger
8667d60bd6
Merge branch 'master' into creachadair/psql-event-schema
2021-08-30 11:24:35 -07:00
Sam Kleinman
c4df8a3840
types: move mempool error for consistency ( #6875 )
...
This is a little change just to make things more consistent ahead of
the 0.35 release.
2021-08-30 17:42:58 +00:00
M. J. Fromberger
b2e9106aff
Merge branch 'master' into creachadair/psql-event-schema
2021-08-30 06:44:18 -07:00
dependabot[bot]
f858ebeb88
build(deps): Bump github.com/rs/zerolog from 1.23.0 to 1.24.0 ( #6874 )
...
Bumps [github.com/rs/zerolog](https://github.com/rs/zerolog ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/rs/zerolog/releases )
- [Commits](https://github.com/rs/zerolog/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: github.com/rs/zerolog
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 09:34:54 -04:00
M. J. Fromberger
c3f1b16e22
Remove another driver-is-not-image-name use.
2021-08-29 09:15:46 -07:00
M. J. Fromberger
ff994c71cd
Merge branch 'master' into creachadair/psql-event-schema
2021-08-29 09:14:49 -07:00
Jeeyong Um
c9347a0647
docs: remove return code in normal case from go built-in example ( #6841 )
...
An explicit exit prevents the deferred cleanup code from running. In this case,
falling off the end of main will achieve the same goal as an explicit exit.
2021-08-29 12:14:20 -04:00
M. J. Fromberger
e5db184820
Drop a redundant select statement.
2021-08-27 15:11:10 -07:00
M. J. Fromberger
53a7533eda
Patch a lint warning.
2021-08-27 15:10:25 -07:00
M. J. Fromberger
da8e2e6c70
Remove an unnecessary name dependency.
2021-08-27 15:07:00 -07:00
M. J. Fromberger
46c232b7f5
Drop the test data file.
2021-08-27 14:49:21 -07:00
M. J. Fromberger
8ecffafc31
Compact test data; add more repeat cases.
2021-08-27 14:39:40 -07:00
M. J. Fromberger
ced2ebc437
Give block_id a consistent name
2021-08-27 14:39:26 -07:00
M. J. Fromberger
c10c12076e
Add a test for events with repeated keys
2021-08-27 14:33:08 -07:00
M. J. Fromberger
6944ae82c6
Correctly index meta-events.
2021-08-27 13:58:38 -07:00
M. J. Fromberger
466231e4d6
Include creation time in the tx_event view
2021-08-27 13:47:28 -07:00
M. J. Fromberger
d95368f11e
Rename the debuf flag -pause-at-exit
2021-08-27 13:47:07 -07:00
M. J. Fromberger
ce05cb67ac
Fix indexing of duplicate transactions.
2021-08-27 13:46:32 -07:00
M. J. Fromberger
06849c72e1
Fix an overly-broad query.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
81c6363b20
More uses of verifyNotImplemented.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
13572b4dca
Remove per-test setup and teardown
2021-08-27 13:18:31 -07:00
M. J. Fromberger
600147a5fc
Make chainID a const
2021-08-27 13:18:31 -07:00
M. J. Fromberger
01f4846518
Implement a custom TestMain function.
...
This avoids having to set up and tear down the database multiple times.
That in turn is necessary so that we don't discard data we need to test.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
217b411753
Fix placeholders.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
dd9823274c
Fix a test result
2021-08-27 13:18:31 -07:00
M. J. Fromberger
9a621d434b
Add a -debug flag to the test for manual inspection
2021-08-27 13:18:31 -07:00
M. J. Fromberger
701e9329ea
Fix INSERT queries that need to report an ID.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
fdcfac75c8
Fix PostgreSQL placeholders.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
d97babae16
WIP: update tests further
2021-08-27 13:18:31 -07:00
M. J. Fromberger
da3af7e401
Fix SQL placeholders for PostgreSQL.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
50a23cb6b4
Some minor readability fixes.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
3b441e1751
Fix an assertion typo.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
1d99e08ef3
Add comments.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
35bffbd9c4
Rework the main test to use helpers.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
63be659f80
Add constants for the events views.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
91d9b67063
Remove an(other) unnecessary import alias.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
6995e1d18a
Clean up schema reading.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
4a1358ea5a
Defer pool teardowns so it's easier to be sure they happen.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
309fd9abde
Get rid of an unnecessary temporary.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
87834e1ec7
Rework setup and teardown as must functions.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
31491dc80f
Remove an unnecessary import alias.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
cb70f03523
WIP update verifyTimeStamp
2021-08-27 13:18:31 -07:00
M. J. Fromberger
5e11a581a0
WIP: Start updating tests
2021-08-27 13:18:31 -07:00
M. J. Fromberger
f1cdb4341d
WIP: add schema test data (do not merge)
2021-08-27 13:18:31 -07:00
M. J. Fromberger
ee06c99e20
WIP: update for new schema, builds but untested
2021-08-27 13:18:31 -07:00
M. J. Fromberger
b62e185578
WIP: start rewriting queries
2021-08-27 13:18:31 -07:00
M. J. Fromberger
2351d3da61
Unexport database constants.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
615164ed57
Make constants const.
2021-08-27 13:18:31 -07:00
M. J. Fromberger
11c92ec4e2
Put side-effecting imports in their own section
2021-08-27 13:18:31 -07:00