Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Fixing dev mode session bug and random test logging
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Oswalt <matt@oswalt.dev>
  • Loading branch information
Mierdin committed Apr 5, 2021
1 parent 26487e3 commit f03049e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/exp/livesessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (s *AntidoteAPI) RequestLiveSession(ctx context.Context, _ *empty.Empty) (*
Persistent: false,
CreatedTime: time.Now(),
})
if err != nil {
if err != nil && !s.Config.DevMode {
return nil, errors.New("Unable to store new session record")
}

Expand Down
2 changes: 1 addition & 1 deletion db/driver_inmem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ func TestLiveSessionCRUD(t *testing.T) {
}

if len(liveSessionsList) != 3 {
t.Fatalf("Expected %d liveSessions, got %d", len(liveSessionsList), 3)
t.Fatalf("Expected %d liveSessions, got %d", 3, len(liveSessionsList))
}

ls, err := adb.GetLiveSession(span.Context(), "abcdef")
Expand Down

0 comments on commit f03049e

Please # to comment.