Skip to content

Commit 97f2581

Browse files
committed
fix cluster tests
1 parent d2d3b47 commit 97f2581

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ before_script:
2020
- sudo apt-get update
2121
- sudo apt-get install rethinkdb
2222
- rethinkdb > /dev/null 2>&1 &
23-
- rethinkdb --port-offset 1 --directory rethinkdb_data1 --join localhost:29015 > /dev/null 2>&1 &
24-
- rethinkdb --port-offset 2 --directory rethinkdb_data2 --join localhost:29015 > /dev/null 2>&1 &
25-
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29015 > /dev/null 2>&1 &
23+
- rethinkdb --port-offset 1 --directory rethinkdb_data1 > /dev/null 2>&1 &
24+
- rethinkdb --port-offset 2 --directory rethinkdb_data2 --join localhost:29016 > /dev/null 2>&1 &
25+
- rethinkdb --port-offset 3 --directory rethinkdb_data3 --join localhost:29016 > /dev/null 2>&1 &
2626

2727
script: go test -tags='cluster' -short -race -v ./...

internal/integration/tests/query_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ func (s *RethinkSuite) TestQueryExec(c *test.C) {
4646
}
4747

4848
func (s *RethinkSuite) TestQueryRunWrite(c *test.C) {
49+
r.DBDrop("test_runwrite").Exec(session)
4950
err := r.DBCreate("test_runwrite").Exec(session)
5051
c.Assert(err, test.IsNil)
5152
err = r.DB("test_runwrite").TableCreate("test_runwrite").Exec(session)
5253
c.Assert(err, test.IsNil)
53-
err = r.DB("test_runwrite").TableCreate("test_runwrite").Wait().Exec(session)
54+
err = r.DB("test_runwrite").Table("test_runwrite").Wait().Exec(session)
5455
c.Assert(err, test.IsNil)
5556

5657
query := r.DB("test_runwrite").Table("test_runwrite").Insert([]interface{}{

0 commit comments

Comments
 (0)