Skip to content

Commit

Permalink
add a failing test for pr #483
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid authored and pauldix committed May 27, 2014
1 parent 947768b commit 24707c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/integration/single_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ func (self *SingleServerSuite) TearDownSuite(c *C) {
self.server.Stop()
}

// pr #483
func (self *SingleServerSuite) TestConflictStatusCode(c *C) {
client := self.server.GetClient("", c)
c.Assert(client.CreateDatabase("test_conflict"), IsNil)
c.Assert(client.CreateDatabase("test_conflict"), ErrorMatches, "Server returned \\(409\\).*")
}

func (self *SingleServerSuite) TestLargeDeletes(c *C) {
numberOfPoints := 2 * 1024 * 1024
data := CreatePoints("test_large_deletes", 1, numberOfPoints)
Expand Down

0 comments on commit 24707c4

Please sign in to comment.