summaryrefslogtreecommitdiffstats
path: root/store/sql_compliance_store_test.go
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-06-19 09:08:52 -0700
committerGitHub <noreply@github.com>2017-06-19 09:08:52 -0700
commite2cc0df2e83d5fd8cf6a23191dc9ffb7c20ca9b0 (patch)
treea0ccc92cdb4816c41a7bc8a8cd4751690e4db83a /store/sql_compliance_store_test.go
parent36f216cb7cb16958d98b3d77e121198596fd2213 (diff)
downloadchat-e2cc0df2e83d5fd8cf6a23191dc9ffb7c20ca9b0.tar.gz
chat-e2cc0df2e83d5fd8cf6a23191dc9ffb7c20ca9b0.tar.bz2
chat-e2cc0df2e83d5fd8cf6a23191dc9ffb7c20ca9b0.zip
PLT-6761 fixing unit tests (#6671)
Diffstat (limited to 'store/sql_compliance_store_test.go')
-rw-r--r--store/sql_compliance_store_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/store/sql_compliance_store_test.go b/store/sql_compliance_store_test.go
index eac7dce3c..ea85a3330 100644
--- a/store/sql_compliance_store_test.go
+++ b/store/sql_compliance_store_test.go
@@ -68,7 +68,7 @@ func TestComplianceExport(t *testing.T) {
t1 := &model.Team{}
t1.DisplayName = "DisplayName"
- t1.Name = "a" + model.NewId() + "b"
+ t1.Name = "zz" + model.NewId() + "b"
t1.Email = model.NewId() + "@nowhere.com"
t1.Type = model.TEAM_OPEN
t1 = Must(store.Team().Save(t1)).(*model.Team)
@@ -88,7 +88,7 @@ func TestComplianceExport(t *testing.T) {
c1 := &model.Channel{}
c1.TeamId = t1.Id
c1.DisplayName = "Channel2"
- c1.Name = "a" + model.NewId() + "b"
+ c1.Name = "zz" + model.NewId() + "b"
c1.Type = model.CHANNEL_OPEN
c1 = Must(store.Channel().Save(c1)).(*model.Channel)
@@ -96,28 +96,28 @@ func TestComplianceExport(t *testing.T) {
o1.ChannelId = c1.Id
o1.UserId = u1.Id
o1.CreateAt = model.GetMillis()
- o1.Message = "a" + model.NewId() + "b"
+ o1.Message = "zz" + model.NewId() + "b"
o1 = Must(store.Post().Save(o1)).(*model.Post)
o1a := &model.Post{}
o1a.ChannelId = c1.Id
o1a.UserId = u1.Id
o1a.CreateAt = o1.CreateAt + 10
- o1a.Message = "a" + model.NewId() + "b"
+ o1a.Message = "zz" + model.NewId() + "b"
o1a = Must(store.Post().Save(o1a)).(*model.Post)
o2 := &model.Post{}
o2.ChannelId = c1.Id
o2.UserId = u1.Id
o2.CreateAt = o1.CreateAt + 20
- o2.Message = "a" + model.NewId() + "b"
+ o2.Message = "zz" + model.NewId() + "b"
o2 = Must(store.Post().Save(o2)).(*model.Post)
o2a := &model.Post{}
o2a.ChannelId = c1.Id
o2a.UserId = u2.Id
o2a.CreateAt = o1.CreateAt + 30
- o2a.Message = "a" + model.NewId() + "b"
+ o2a.Message = "zz" + model.NewId() + "b"
o2a = Must(store.Post().Save(o2a)).(*model.Post)
time.Sleep(100 * time.Millisecond)