Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
  • Loading branch information
rustatian committed Jan 4, 2023
1 parent b6fb775 commit 72aafe3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
test:
go test -v -race -tags=debug ./tests/general/test1
go test -v -race -tags=debug ./tests/general/test2
go test -v -race -tags=debug ./tests/general/test3
go test -v -race -tags=debug ./tests/init
go test -v -race -tags=debug ./tests/happy_scenarios
go test -v -race -tags=debug ./tests/interfaces
Expand Down
5 changes: 3 additions & 2 deletions tests/general/test2/p5/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/roadrunner-server/endure/v2/dep"
"github.com/roadrunner-server/endure/v2/tests/general/test1/p1/pkg"
"github.com/roadrunner-server/errors"
)

type Plugin struct {
Expand All @@ -18,11 +19,11 @@ type Fooer interface {

func (p *Plugin) Init() error {
p.nnn = "foo"
return nil
return errors.E(errors.Disabled)
}

func (p *Plugin) Serve() chan error {
return make(chan error, 1)
panic("should not be called")
}

func (p *Plugin) Stop(context.Context) error {
Expand Down
2 changes: 0 additions & 2 deletions tests/general/test3/test3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ func Test1(t *testing.T) {
err = end.Register(&p2.Plugin{})
assert.NoError(t, err)

assert.NoError(t, err)

err = end.Init()
assert.NoError(t, err)

Expand Down

0 comments on commit 72aafe3

Please sign in to comment.