From b9b315dd6418070c920d01eb87b366d8681f9a5d Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Tue, 30 Jan 2018 11:18:00 +0000 Subject: [PATCH] Fix conformance tests --- storage/conformance/conformance.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/storage/conformance/conformance.go b/storage/conformance/conformance.go index 6d2eb751..ea21edae 100644 --- a/storage/conformance/conformance.go +++ b/storage/conformance/conformance.go @@ -509,9 +509,10 @@ func testPasswordCRUD(t *testing.T, s storage.Storage) { func testOfflineSessionCRUD(t *testing.T, s storage.Storage) { userID1 := storage.NewID() session1 := storage.OfflineSessions{ - UserID: userID1, - ConnID: "Conn1", - Refresh: make(map[string]*storage.RefreshTokenRef), + UserID: userID1, + ConnID: "Conn1", + Refresh: make(map[string]*storage.RefreshTokenRef), + ConnectorData: []byte(`{"some":"data"}`), } // Creating an OfflineSession with an empty Refresh list to ensure that @@ -526,9 +527,10 @@ func testOfflineSessionCRUD(t *testing.T, s storage.Storage) { userID2 := storage.NewID() session2 := storage.OfflineSessions{ - UserID: userID2, - ConnID: "Conn2", - Refresh: make(map[string]*storage.RefreshTokenRef), + UserID: userID2, + ConnID: "Conn2", + Refresh: make(map[string]*storage.RefreshTokenRef), + ConnectorData: []byte(`{"some":"data"}`), } if err := s.CreateOfflineSessions(session2); err != nil {