diff --git a/bindings/follow.go b/bindings/follow.go index e9b5097619217648d9d9d4bc38e4d159fdbe98a4..892a6311d7b5a76613303f379ffe7d0f2f0abdac 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 d30efb1078de7c8b204b3911bc97470a41c58e4c..7f0eccd65563a8cd52b905debd81c84fad8dc229 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)