aboutsummaryrefslogtreecommitdiff
path: root/persistence/sessions_test.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-09 19:32:55 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-02-09 19:32:55 +0300
commitbf00e9862888cf60a427cdb611352fc75bb1c912 (patch)
tree79225515888a2ac9705c94c5c852b7617eeac6f5 /persistence/sessions_test.go
parent3618dadd81008eef542202e5f4f6e4d58eb39510 (diff)
Fix existing testsv1.0.1
Diffstat (limited to 'persistence/sessions_test.go')
-rw-r--r--persistence/sessions_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/persistence/sessions_test.go b/persistence/sessions_test.go
index 0968b53..aa1f4b8 100644
--- a/persistence/sessions_test.go
+++ b/persistence/sessions_test.go
@@ -45,11 +45,14 @@ func TestSessionGetAbsent(t *testing.T) {
func TestSessionToMap(t *testing.T) {
session := Session{
- Timezone: "klsf",
+ Timezone: "klsf",
+ RawMessages: true,
}
m := session.ToMap()
sample := map[string]string{
- "timezone": "klsf",
+ "timezone": "klsf",
+ "keeponline": "false",
+ "rawmessages": "true",
}
if !reflect.DeepEqual(m, sample) {
t.Errorf("Map does not match the sample: %v", m)