From 40179db48f41ad03e675721913a19175d7ddf911 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Thu, 26 Sep 2024 16:53:53 +0200 Subject: [PATCH] oasis-test-runner: Enable client node registration --- go/oasis-test-runner/oasis/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/oasis-test-runner/oasis/client.go b/go/oasis-test-runner/oasis/client.go index 7e2e98a9d11..4d785e63e36 100644 --- a/go/oasis-test-runner/oasis/client.go +++ b/go/oasis-test-runner/oasis/client.go @@ -58,6 +58,11 @@ func (client *Client) ModifyConfig() error { client.Config.P2P.Port = client.p2pPort + if !client.entity.isDebugTestEntity { + entityID, _ := client.entity.ID().MarshalText() // Cannot fail. + client.Config.Registration.EntityID = string(entityID) + } + if len(client.runtimes) > 0 { client.Config.Mode = config.ModeClient client.Config.Runtime.Provisioner = client.runtimeProvisioner