aboutsummaryrefslogtreecommitdiff
path: root/persistence
diff options
context:
space:
mode:
Diffstat (limited to 'persistence')
-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)