11 Commits

Author SHA1 Message Date
Michael Hendricks
126f21b002
Make sure failed tests report their exit code (#240)
Commit 72c1660c13cb8cf0d590d91fb03625a68e53900f introduced TestMain, but forgot to call os.Exit with the value returned from m.Run  This causes "go test" to exit with status 0, even if tests fail.  Adding os.Exit to TestMain makes sure the success/failure of tests is correctly reported through the exit code.
2021-04-23 17:38:02 -07:00
bbiao
72c1660c13 In golang v1.13, parse flags in package initialization will fail. See https://tip.golang.org/doc/go1.13#testing (#177)
Fixed by move the init func into a TestMain func.
2019-09-25 22:49:19 +08:00
Gyuho Lee
76a4670663 *: update import paths "go.etcd.io/bbolt"
Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
2018-08-28 08:15:54 -07:00
Josh Bleecher Snyder
18ced60c94 Ensure that keys generated by testing/quick are unique
Quick seed 21691 used to generate duplicate keys, 
which caused some Puts of values to overwrite other values,
causing spurious test failures.

Fixes #629.
2016-12-28 14:09:56 -08:00
Ben Johnson
ba6badc57f Move tests to a test package. 2014-07-26 15:11:47 -06:00
Ben Johnson
956453b69f Minor refactor. 2014-02-28 15:13:07 -07:00
Ben Johnson
15e0eae829 Bidirectional cursors. 2014-02-20 13:53:40 -07:00
Ben Johnson
b8122bf568 Cursor iteration. 2014-02-11 09:07:07 -07:00
Ben Johnson
a0c8de592d Fix multi-put transaction. 2014-02-06 16:06:13 -07:00
Ben Johnson
8b3b81ef47 Fix quick tests. 2014-02-05 07:56:13 -07:00
Ben Johnson
1a17a2cf1e Add RWTransaction.Put(). 2014-02-01 12:30:37 -05:00