add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and othe… (#1261)
* add MICRO_AUTH_TOKEN, parse token in wrapper, preload config and other things * fix wrapper panic
This commit is contained in:
		| @@ -4,6 +4,7 @@ import ( | ||||
| 	"context" | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/micro/go-micro/v2/auth" | ||||
| 	"github.com/micro/go-micro/v2/metadata" | ||||
| ) | ||||
|  | ||||
| @@ -33,6 +34,7 @@ func TestWrapper(t *testing.T) { | ||||
|  | ||||
| 	for _, d := range testData { | ||||
| 		c := &clientWrapper{ | ||||
| 			auth:    func() auth.Auth { return nil }, | ||||
| 			headers: d.headers, | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user