summaryrefslogtreecommitdiffstats
path: root/store/sql_post_store_test.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-16 17:37:11 -0700
commitcef7a1aae4205ebf4fbd8958f1f870ff69759edf (patch)
treea3bbd45979a89f9a4030f750b1a30099d7e565b9 /store/sql_post_store_test.go
parente644b53b72d346539f5c58cc0cb0a07c4054cbcb (diff)
downloadchat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.gz
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.tar.bz2
chat-cef7a1aae4205ebf4fbd8958f1f870ff69759edf.zip
PLT-92 Adding server side versioning to the binary
Diffstat (limited to 'store/sql_post_store_test.go')
-rw-r--r--store/sql_post_store_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/store/sql_post_store_test.go b/store/sql_post_store_test.go
index d48dea51c..bec2ceb60 100644
--- a/store/sql_post_store_test.go
+++ b/store/sql_post_store_test.go
@@ -37,14 +37,14 @@ func TestPostStoreGet(t *testing.T) {
o1.Message = "a" + model.NewId() + "b"
etag1 := (<-store.Post().GetEtag(o1.ChannelId)).Data.(string)
- if strings.Index(etag1, model.ETAG_ROOT_VERSION+".0.") != 0 {
+ if strings.Index(etag1, model.GetFullVersion()+".0.") != 0 {
t.Fatal("Invalid Etag")
}
o1 = (<-store.Post().Save(o1)).Data.(*model.Post)
etag2 := (<-store.Post().GetEtag(o1.ChannelId)).Data.(string)
- if strings.Index(etag2, model.ETAG_ROOT_VERSION+"."+o1.Id) != 0 {
+ if strings.Index(etag2, model.GetFullVersion()+"."+o1.Id) != 0 {
t.Fatal("Invalid Etag")
}
@@ -136,7 +136,7 @@ func TestPostStoreDelete(t *testing.T) {
o1.Message = "a" + model.NewId() + "b"
etag1 := (<-store.Post().GetEtag(o1.ChannelId)).Data.(string)
- if strings.Index(etag1, model.ETAG_ROOT_VERSION+".0.") != 0 {
+ if strings.Index(etag1, model.GetFullVersion()+".0.") != 0 {
t.Fatal("Invalid Etag")
}
@@ -160,7 +160,7 @@ func TestPostStoreDelete(t *testing.T) {
}
etag2 := (<-store.Post().GetEtag(o1.ChannelId)).Data.(string)
- if strings.Index(etag2, model.ETAG_ROOT_VERSION+"."+o1.Id) != 0 {
+ if strings.Index(etag2, model.GetFullVersion()+"."+o1.Id) != 0 {
t.Fatal("Invalid Etag")
}
}