summaryrefslogtreecommitdiffstats
path: root/store/sql_audit_store_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-07-06 11:24:06 -0800
committerCorey Hulen <corey@hulen.com>2015-07-06 11:24:06 -0800
commit3dec509899f60ca0d2eadfcc192ccc49969852ef (patch)
treea86552979d6fab4dbe336171ade9d3e69b64fff0 /store/sql_audit_store_test.go
parent10b625ba1740c6177cfe5c06484f4a14867523bd (diff)
parent34fb817a4a4cd2761ba35a2c94f9d0eb79d06244 (diff)
downloadchat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.gz
chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.tar.bz2
chat-3dec509899f60ca0d2eadfcc192ccc49969852ef.zip
Merge pull request #131 from mattermost/mm-1391
Fixes mm-1391 adding travis CI
Diffstat (limited to 'store/sql_audit_store_test.go')
-rw-r--r--store/sql_audit_store_test.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/store/sql_audit_store_test.go b/store/sql_audit_store_test.go
index 3e6f22730..4d804d150 100644
--- a/store/sql_audit_store_test.go
+++ b/store/sql_audit_store_test.go
@@ -6,17 +6,24 @@ package store
import (
"github.com/mattermost/platform/model"
"testing"
+ "time"
)
func TestSqlAuditStore(t *testing.T) {
Setup()
audit := &model.Audit{UserId: model.NewId(), IpAddress: "ipaddress", Action: "Action"}
- <-store.Audit().Save(audit)
- <-store.Audit().Save(audit)
- <-store.Audit().Save(audit)
+ Must(store.Audit().Save(audit))
+ time.Sleep(100 * time.Millisecond)
+ Must(store.Audit().Save(audit))
+ time.Sleep(100 * time.Millisecond)
+ Must(store.Audit().Save(audit))
+ time.Sleep(100 * time.Millisecond)
audit.ExtraInfo = "extra"
- <-store.Audit().Save(audit)
+ time.Sleep(100 * time.Millisecond)
+ Must(store.Audit().Save(audit))
+
+ time.Sleep(100 * time.Millisecond)
c := store.Audit().Get(audit.UserId, 100)
result := <-c