mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
* WIP * fix: default memory registry, add registrations for mdns, nats * fix: same for broker * fix: add more * fix: http port * rename redis * chore: linting
19 lines
343 B
Go
19 lines
343 B
Go
package nats_test
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func assertNoError(tb testing.TB, actual error) {
|
|
if actual != nil {
|
|
tb.Errorf("expected no error, got %v", actual)
|
|
}
|
|
}
|
|
|
|
func assertEqual(tb testing.TB, expected, actual interface{}) {
|
|
if !reflect.DeepEqual(expected, actual) {
|
|
tb.Errorf("expected %v, got %v", expected, actual)
|
|
}
|
|
}
|