From 3e0e12e3088e5f59e82000bbd11ee912b1ec86ba Mon Sep 17 00:00:00 2001 From: Volodymyr Manilo Date: Fri, 6 Dec 2024 20:13:18 +0100 Subject: [PATCH] fix tests --- twingate/internal/test/client/remote-network_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twingate/internal/test/client/remote-network_test.go b/twingate/internal/test/client/remote-network_test.go index 02ece45c..45544bf0 100644 --- a/twingate/internal/test/client/remote-network_test.go +++ b/twingate/internal/test/client/remote-network_test.go @@ -244,7 +244,7 @@ func TestClientRemoteNetworkReadByIDError(t *testing.T) { remoteNetwork, err := client.ReadRemoteNetworkByID(context.Background(), "id", true) assert.Nil(t, remoteNetwork) - assert.EqualError(t, err, "failed to read remote network with id id: query result is empty") + assert.EqualError(t, err, "failed to read exit network with id id: query result is empty") }) } @@ -278,7 +278,7 @@ func TestClientRemoteNetworkReadByNameError(t *testing.T) { remoteNetwork, err := client.ReadRemoteNetworkByName(context.Background(), "name", true) assert.Nil(t, remoteNetwork) - assert.EqualError(t, err, "failed to read remote network with name name: query result is empty") + assert.EqualError(t, err, "failed to read exit network with name name: query result is empty") }) } @@ -331,7 +331,7 @@ func TestClientReadEmptyRemoteNetworkByIDError(t *testing.T) { remoteNetwork, err := client.ReadRemoteNetworkByID(context.Background(), "", true) - assert.EqualError(t, err, "failed to read remote network: network id is empty") + assert.EqualError(t, err, "failed to read exit network: network id is empty") assert.Nil(t, remoteNetwork) }) }