From 0cfaf693edcd9d81f7ca95740942d55260903094 Mon Sep 17 00:00:00 2001
From: joshemb <josh@elixxir.io>
Date: Tue, 13 Sep 2022 12:57:57 -0700
Subject: [PATCH] Fix bindings call GetRunningProcesses

---
 bindings/follow.go        |  4 ++--
 bindings/identity_test.go | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/bindings/follow.go b/bindings/follow.go
index e9b509761..892a6311d 100644
--- a/bindings/follow.go
+++ b/bindings/follow.go
@@ -138,8 +138,8 @@ func (c *Cmix) IsHealthy() bool {
 
 // GetRunningProcesses returns the name of all running processes at the time
 // of this call.
-func (c *Cmix) GetRunningProcesses() []string {
-	return c.api.GetRunningProcesses()
+func (c *Cmix) GetRunningProcesses() ([]byte, error) {
+	return json.Marshal(c.api.GetRunningProcesses())
 }
 
 // NetworkHealthCallback contains a callback that is used to receive
diff --git a/bindings/identity_test.go b/bindings/identity_test.go
index d30efb107..7f0eccd65 100644
--- a/bindings/identity_test.go
+++ b/bindings/identity_test.go
@@ -9,7 +9,9 @@ package bindings
 
 import (
 	"encoding/json"
+	"gitlab.com/elixxir/crypto/group"
 	"testing"
+	"time"
 
 	"gitlab.com/elixxir/crypto/cmix"
 	"gitlab.com/elixxir/crypto/cyclic"
@@ -20,6 +22,22 @@ import (
 	"gitlab.com/xx_network/primitives/id"
 )
 
+func TestName(t *testing.T) {
+
+	gmid := group.MessageID{}
+	copy(gmid[:], []byte("forty five"))
+	mr := GroupChatMessage{
+		GroupId:   id.NewIdFromUInt(628139, id.Group, t).Bytes(),
+		MessageId: gmid.Bytes(),
+		Payload:   []byte("forty five"),
+		SenderId:  id.NewIdFromUInt(1992, id.User, t).Bytes(),
+		Timestamp: time.Now().UnixNano(),
+	}
+
+	mar, _ := json.Marshal(mr)
+	t.Logf("%s", mar)
+}
+
 func TestIdentity_JSON(t *testing.T) {
 	rng := csprng.NewSystemRNG()
 	uid := id.NewIdFromString("zezima", id.User, t)
-- 
GitLab