From bff137b109bed6cbd606bf5e6dffbb60c8305583 Mon Sep 17 00:00:00 2001 From: braginini Date: Fri, 20 Aug 2021 22:37:58 +0200 Subject: [PATCH] fix: test --- management/client/client_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/management/client/client_test.go b/management/client/client_test.go index b3d0c2853..9b75182ef 100644 --- a/management/client/client_test.go +++ b/management/client/client_test.go @@ -19,6 +19,8 @@ import ( var tested *Client var serverAddr string +const ValidKey = "A2C8E62B-38F5-4553-B31E-DD66C696CEBB" + func Test_Start(t *testing.T) { level, _ := log.ParseLevel("debug") log.SetLevel(level) @@ -105,7 +107,7 @@ func TestClient_LoginRegistered(t *testing.T) { if err != nil { t.Error(err) } - resp, err := tested.Register(*key, "a2c8e62b-38f5-4553-b31e-dd66c696cebb") + resp, err := tested.Register(*key, ValidKey) if err != nil { t.Error(err) } @@ -121,7 +123,7 @@ func TestClient_Sync(t *testing.T) { t.Error(err) } - _, err = tested.Register(*serverKey, "a2c8e62b-38f5-4553-b31e-dd66c696cebb") + _, err = tested.Register(*serverKey, ValidKey) if err != nil { t.Error(err) } @@ -135,7 +137,7 @@ func TestClient_Sync(t *testing.T) { if err != nil { t.Fatal(err) } - _, err = remoteClient.Register(*serverKey, "a2c8e62b-38f5-4553-b31e-dd66c696cebb") + _, err = remoteClient.Register(*serverKey, ValidKey) if err != nil { t.Fatal(err) }