Skip to content

Commit

Permalink
apply feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Dec 15, 2022
1 parent 0fd5d19 commit ae48085
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions db/replicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestGetAllReplicatorsWith2Addition(t *testing.T) {
}, reps)
}

func TestGetAllReplicatorsWith2AddionnsOnSamePeer(t *testing.T) {
func TestGetAllReplicatorsWith2AdditionsOnSamePeer(t *testing.T) {
ctx := context.Background()
db, err := newMemoryDB(ctx)
require.NoError(t, err)
Expand Down Expand Up @@ -213,10 +213,24 @@ func TestDeleteReplicatorWith2Addition(t *testing.T) {
})
require.NoError(t, err)

reps, err := db.GetAllReplicators(ctx)
require.NoError(t, err)

assert.Equal(t, []client.Replicator{
{
Info: *info,
Schemas: []string{"test"},
},
{
Info: *info2,
Schemas: []string{"test", "test2", "test3"},
},
}, reps)

err = db.DeleteReplicator(ctx, client.Replicator{Info: *info})
require.NoError(t, err)

reps, err := db.GetAllReplicators(ctx)
reps, err = db.GetAllReplicators(ctx)
require.NoError(t, err)

assert.Equal(t, []client.Replicator{
Expand Down
2 changes: 1 addition & 1 deletion net/api/pb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GO = $(PB:.proto=.pb.go)
all: $(GO)

%.pb.go: %.proto
protoc -I=. --gogofaster_out=\
protoc -I=. -I=$(GOPATH)/src -I=$(GOPATH)/src/github.com/gogo/protobuf/protobuf --gogofaster_out=\
plugins=grpc:\
. $<

Expand Down

0 comments on commit ae48085

Please sign in to comment.