From 160986cc0bced04ea066f9fe0c01f33cce301892 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 19 Mar 2018 11:35:31 +0000 Subject: [PATCH] Shorten test timeout time to prevent test failure --- db/delete_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/delete_test.go b/db/delete_test.go index 2c7b10b7..be7ac714 100644 --- a/db/delete_test.go +++ b/db/delete_test.go @@ -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() txt := ` USE NS test DB test; - DELETE |person:1..1000| TIMEOUT 1ms; + DELETE |person:1..1000| TIMEOUT 1ns; SELECT * FROM person; ` @@ -150,7 +150,7 @@ func TestDelete(t *testing.T) { So(res[1].Result, ShouldHaveLength, 0) So(res[2].Result, ShouldHaveLength, 0) 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") })