summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-14 18:58:32 +0300
committerValery Piashchynski <[email protected]>2020-12-14 18:58:32 +0300
commitea25ded710988949f99eea395e31e3ac61f844f8 (patch)
treeae94c9b606f5b6e3cefaf8d7d8ae6b2eb0c90bdb
parent6ae6f8968188d5851e1929fff81e15cb730619b4 (diff)
update goridge in go.mod
-rw-r--r--.github/workflows/build.yml2
-rwxr-xr-xgo.mod2
-rwxr-xr-xgo.sum2
-rw-r--r--phpstan.neon.dist4
-rw-r--r--plugins/resetter/tests/resetter_test.go5
5 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8cc0291c..7d81d1bd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -80,7 +80,7 @@ jobs:
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
- run: composer update --prefer-dist --no-progress --ansi
+ run: cd tests && composer update --prefer-dist --no-progress --ansi
- name: Init Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
uses: actions/cache@v2
diff --git a/go.mod b/go.mod
index 902d37aa..8c4027fb 100755
--- a/go.mod
+++ b/go.mod
@@ -16,7 +16,7 @@ require (
github.com/spf13/viper v1.7.1
github.com/spiral/endure v1.0.0-beta20
github.com/spiral/errors v1.0.5
- github.com/spiral/goridge/v3 v3.0.0-beta6
+ github.com/spiral/goridge/v3 v3.0.0-beta7
github.com/stretchr/testify v1.6.1
github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a
github.com/yookoala/gofast v0.4.0
diff --git a/go.sum b/go.sum
index 13a9b73d..4196fb34 100755
--- a/go.sum
+++ b/go.sum
@@ -382,6 +382,8 @@ github.com/spiral/errors v1.0.5 h1:TwlR9cZtTgnZrSngcEUpyiMO9yJ45gdQ+XcrCRoCCAM=
github.com/spiral/errors v1.0.5/go.mod h1:SwMSZVdZkkJVgXNNafccqOaxWg0XPzVU/dEdUEInE0o=
github.com/spiral/goridge/v3 v3.0.0-beta6 h1:R+MQy93vUWn7zOvdFt8m3WMiTuLoP921IikQpGe9xXo=
github.com/spiral/goridge/v3 v3.0.0-beta6/go.mod h1:XFQGc42KNzo/hPIXPki7mEkFTf9v/T7qFk/TYJjMtzE=
+github.com/spiral/goridge/v3 v3.0.0-beta7 h1:rJmfVFC/clN7XgsONcu185l36cPJ+MfcFkQSifQXFCM=
+github.com/spiral/goridge/v3 v3.0.0-beta7/go.mod h1:XFQGc42KNzo/hPIXPki7mEkFTf9v/T7qFk/TYJjMtzE=
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
deleted file mode 100644
index b5fec74d..00000000
--- a/phpstan.neon.dist
+++ /dev/null
@@ -1,4 +0,0 @@
-parameters:
- level: 'max'
- paths:
- - src \ No newline at end of file
diff --git a/plugins/resetter/tests/resetter_test.go b/plugins/resetter/tests/resetter_test.go
index 378757c2..3bfccf47 100644
--- a/plugins/resetter/tests/resetter_test.go
+++ b/plugins/resetter/tests/resetter_test.go
@@ -19,7 +19,7 @@ import (
"github.com/stretchr/testify/assert"
)
-func TestInformerInit(t *testing.T) {
+func TestResetterInit(t *testing.T) {
cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel))
if err != nil {
t.Fatal(err)
@@ -53,7 +53,7 @@ func TestInformerInit(t *testing.T) {
tt := time.NewTimer(time.Second * 15)
- t.Run("InformerRpcTest", resetterRPCTest)
+ t.Run("ResetterRpcTest", resetterRPCTest)
for {
select {
@@ -94,6 +94,7 @@ func resetterRPCTest(t *testing.T) {
var services []string
err = client.Call("resetter.List", nil, &services)
+ assert.NotNil(t, services)
assert.NoError(t, err)
if services[0] != "resetter.plugin1" {
t.Fatal("no enough services")