go-kivik / kiviktest Goto Github PK
View Code? Open in Web Editor NEWShared test suite for kivik (internal use)
License: Apache License 2.0
Shared test suite for kivik (internal use)
License: Apache License 2.0
I need to devise a way to do a replication slowly, so that I can test replication status reports and GetReplications()
midway through.
And for PouchDB, I need a way to determine the progress at all.
--- FAIL: TestCouch17 (11.99s)
test.go:403: Connecting to http://admin:abc123@localhost:6003/ ...
test.go:415: Connecting to http://localhost:6003/ ...
--- FAIL: TestCouch17/AllDBs (0.01s)
--- FAIL: TestCouch17/AllDBs/RW (0.01s)
--- FAIL: TestCouch17/AllDBs/RW/group (0.00s)
--- FAIL: TestCouch17/AllDBs/RW/group/NoAuth (0.00s)
kt.go:260: AllDBs() returned unexpected list:
--- expected
+++ actual
@@ -2,2 +2,3 @@
_users
kivik$alldbs_rw$3fc14aaabe3e8a2c
+kivik$putattachment_rw$4847860246a346f2
--- FAIL: TestCouch17/AllDBs/RW/group/Admin (0.00s)
kt.go:260: AllDBs() returned unexpected list:
--- expected
+++ actual
@@ -2,2 +2,3 @@
_users
kivik$alldbs_rw$3fc14aaabe3e8a2c
+kivik$putattachment_rw$4847860246a346f2
--- FAIL: TestCouch17/AllDBs/NoAuth (0.01s)
kt.go:260: AllDBs() returned unexpected list:
--- expected
+++ actual
@@ -1,2 +1,3 @@
_replicator
_users
+kivik$putattachment_rw$4847860246a346f2
--- FAIL: TestCouch17/AllDBs/Admin (0.01s)
kt.go:260: AllDBs() returned unexpected list:
--- expected
+++ actual
@@ -1,2 +1,3 @@
_replicator
_users
+kivik$putattachment_rw$4847860246a346f2
Go 1.10 just broke the tests:
# github.com/flimzy/kivik/vendor/github.com/go-kivik/kiviktest
vendor/github.com/go-kivik/kiviktest/go19testing.go:34:31: cannot use deps literal (type *deps) as type testing.testDeps in argument to testing.MainStart:
*deps does not implement testing.testDeps (missing StartTestLog method)
FAIL github.com/flimzy/kivik/test [build failed]
--- FAIL: TestCouch21 (19.87s)
test.go:403: Connecting to http://admin:abc123@localhost:6002/ ...
test.go:415: Connecting to http://localhost:6002/ ...
--- FAIL: TestCouch21/GetReplications (0.00s)
--- FAIL: TestCouch21/GetReplications/Admin (0.02s)
kt.go:258: GetReplications results differ:
--- expected
+++ actual
@@ -1 +1,10 @@
-[]
+[
+ {
+ "Source": "http://localhost:5984/foo/",
+ "Target": "http://localhost:5984/kivik$replicate_rw_admin$612a6c8a84ff687f/"
+ },
+ {
+ "Source": "http://localhost:5984/kivik$replicate_rw_admin$75a9a47160432eb6/",
+ "Target": "http://localhost:5984/foo/"
+ }
+]
This depends on some way to run replications slowly (see #5).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.