INNER CODE UNIT · Go
mcallResults
moleculer-go/moleculer · broker/broker_internals_test.go:508
mcallResults = <-bkr1.MCall(mParams)
Expect(hasKey(mcallResults, "music-start")).Should(BeTrue())
Expect(hasKey(mcallResults, "music-end")).Should(BeTrue())
Expect(hasKey(mcallResults, "food-dinner")).Should(BeTrue())
Expect(hasKey(mcallResults, "food-lunch")).Should(BeTrue())
bkr1.Stop()
bkr2.Stop()
})
// }
// orderResults := func(values map[string]moleculer.Payload) interface{} {
// result := make(map[string][]map[string]interface{})
// for key, payload := range values {
// orderBy := "name"
// if key == "nodes" {
// orderBy = "id"