Shorten test timeout time to prevent test failure

This commit is contained in:
Tobie Morgan Hitchcock 2018-03-19 11:35:31 +00:00
parent 6d60b2ff4d
commit 160986cc0b

View file

@ -134,13 +134,13 @@ func TestDelete(t *testing.T) {
}) })
Convey("Deleting with a timeout of 1ms returns an error", t, func() { Convey("Deleting with a timeout of 1ns returns an error", t, func() {
setupDB() setupDB()
txt := ` txt := `
USE NS test DB test; USE NS test DB test;
DELETE |person:1..1000| TIMEOUT 1ms; DELETE |person:1..1000| TIMEOUT 1ns;
SELECT * FROM person; SELECT * FROM person;
` `
@ -150,7 +150,7 @@ func TestDelete(t *testing.T) {
So(res[1].Result, ShouldHaveLength, 0) So(res[1].Result, ShouldHaveLength, 0)
So(res[2].Result, ShouldHaveLength, 0) So(res[2].Result, ShouldHaveLength, 0)
So(res[1].Status, ShouldEqual, "ERR") So(res[1].Status, ShouldEqual, "ERR")
So(res[1].Detail, ShouldEqual, "Query timeout of 1ms exceeded") So(res[1].Detail, ShouldEqual, "Query timeout of 1ns exceeded")
}) })