Skip to content

Commit

Permalink
Merge 082ad10 into 8000a12
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jan 2, 2019
2 parents 8000a12 + 082ad10 commit 6ad3031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions wantslistapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import pb "github.com/brotherlogic/wantslist/proto"
//AddWantList adds a want list
func (s *Server) AddWantList(ctx context.Context, req *pb.AddWantListRequest) (*pb.AddWantListResponse, error) {
s.config.Lists = append(s.config.Lists, req.Add)
s.save(ctx)
return &pb.AddWantListResponse{}, nil
}

Expand Down
3 changes: 3 additions & 0 deletions wantslistutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ package main

import (
"testing"

"github.com/brotherlogic/keystore/client"
)

func InitTestServer() *Server {
s := Init()
s.SkipLog = true
s.GoServer.KSclient = *keystoreclient.GetTestClient(".test")
return s
}

Expand Down

0 comments on commit 6ad3031

Please sign in to comment.