Skip to content
Snippets Groups Projects
Commit 0cfaf693 authored by Josh Brooks's avatar Josh Brooks
Browse files

Fix bindings call GetRunningProcesses

parent 40b80af3
Branches
Tags
3 merge requests!510Release,!381Initial CTIDH,!378Add a debug GetRunningProcesses to bindings
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment