Code Monkey home page Code Monkey logo

kiviktest's People

Contributors

flimzy avatar

Watchers

 avatar  avatar

Forkers

ig-soft

kiviktest's Issues

Devise a way to test replications mid-replication

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.

Random failure from 1.7

--- 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
        		

Add Go 1.10 support

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]

Intermittent failures from 2.1

--- 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/"
        		+    }
        		+]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.